Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/www/html/files/_functions.php on line 38 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 'AND principal = 1 AND status = 1 ORDER BY id DESC LIMIT 1' at line 1