Warning: Undefined property: shops_Controller::$id_user in /var/www/socbuys.com/controllers/shops_Controller.php on line 49

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 '' at line 1 in /var/www/socbuys.com/libs/Model.php:16 Stack trace: #0 /var/www/socbuys.com/libs/Model.php(16): mysqli_query() #1 /var/www/socbuys.com/models/shops_Model.php(117): Model->query() #2 /var/www/socbuys.com/controllers/shops_Controller.php(49): shops_Model->count_users() #3 /var/www/socbuys.com/controllers/shops_Controller.php(39): shops_Controller->getUsers() #4 /var/www/socbuys.com/libs/Bootstrap.php(98): shops_Controller->index() #5 /var/www/socbuys.com/index.php(14): Bootstrap->__construct() #6 {main} thrown in /var/www/socbuys.com/libs/Model.php on line 16