mysql_query restituisce una risorsa. Devi estrarre una riga da quella risorsa:
$query = mysql_query($selectShoeRatingQuery);
$row = mysql_fetch_row($query);
$shoeRating = $row[0];
E, a meno che tu non abbia altra scelta, non usare le estensioni mysql_: sono deprecate e PDO o mysqli sono migliori. Inoltre la tua query è vulnerabile alla SQL injection.
Con PDO, il codice equivalente sarebbe:
$stmt = $pdo->prepare("SELECT ... FROM ... WHERE ...");
$stmt->execute();
$shoeRating = $stmt->fetchColumn();