in questo modo dovrebbe andare
Codice PHP:
$query "SELECT foto_1,foto_2,foto_3,foto_4 FROM TABLE ORDER BY Rand() LIMIT 2"