Fatal error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY RAND()' at line 1 - SELECT SQL_CACHE p.* FROM tb_produtos p WHERE ativo=1 AND id_subcategorias= ORDER BY RAND() in /home/aprovale/public_html/classes/banco.class.php on line 96