Deprecated: mysqli_real_escape_string(): Passing null to parameter #2 ($string) of type string is deprecated in /home/sportira/public_html/models/products.php on line 58
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 /home/sportira/public_html/cms/config/db_operations.php:54
Stack trace:
#0 /home/sportira/public_html/cms/config/db_operations.php(54): mysqli_query(Object(mysqli), 'SELECT * FROM c...')
#1 /home/sportira/public_html/models/products.php(65): database::selectRecords('*', 'categories', ' WHERE id = ')
#2 /home/sportira/public_html/pages/products.php(57): fetchProductUrlByLangAndId('', 'fr')
#3 {main}
thrown in /home/sportira/public_html/cms/config/db_operations.php on line 54