Is there another way to do this Query ?
$query = "SELECT * FROM produto, pt WHERE
produto.refPT = pt.ref AND
produto.refPT IN (SELECT idProduto FROM amb_prod WHERE idAmbiente='1');";
$result_set = mysql_query($query);
The problem is my localhost have the MySQL version 5.1.30-community, but my Online server have the 5.0.67-community MySQL version.
And I think is that the reason why I get this error only when I try to run on the online server:
mysql_fetch_array(): supplied argument is not a valid MySQL result resource