Fatal error: Uncaught mysqli_sql_exception: 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 'AND p.status = 'approved'
GROUP BY r.categoria' at line 4 in /home2/promov00/suarifa.com/_util.php:276
Stack trace:
#0 /home2/promov00/suarifa.com/_util.php(276): mysqli->prepare('SELECT r.catego...')
#1 /home2/promov00/suarifa.com/painel/index.php(14): getQuery('SELECT r.catego...')
#2 {main}
thrown in /home2/promov00/suarifa.com/_util.php on line 276