Erro ao Executar o Query:
SELECT produto_relacionado_id
FROM produto_relacionado AS pr
WHERE pr.produto_id = 342
AND pr.categoria_id =
ORDER BY RAND() LIMIT 4
-
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY RAND() LIMIT 4' at line 5