Fatal error: Uncaught mysqli_sql_exception: 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 '= 0 ORDER BY Time DESC LIMIT 50' at line 1 in /var/www/roseniot/iot/api_v2/slist.php:8 Stack trace: #0 /var/www/roseniot/iot/api_v2/slist.php(8): mysqli_query() #1 {main} thrown in /var/www/roseniot/iot/api_v2/slist.php on line 8