<?php$lista2 = mysql_query("SELECT id FROM categorias WHERE id = $cat LIMIT 0,1") or die (mysql_error());?>