Warning: mysqli_query() expects parameter 2 to be string, object given in /home/cbretail/public_html/includes/functions/database.php on line 50

Catchable fatal error: Object of class mysqli_result could not be converted to string in /home/cbretail/public_html/includes/functions/database.php on line 38