simo 22 WHERE id=3 AND id=5 ... questa condizione è sbagliata
Codice PHP:
$query ="SELECT campo FROM tua_tabella WHERE campo_univoco='X' OR campo_univoco='X'";
$result mysql_query($query) or die('Errore nella query'.$query.' per il seguente motivo'.mysql_error());

while(
$row mysql_fetch_array($result))
{
echo 
$row['campo'];