Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /var/www/vhosts/theprintandgiftco.co.uk/httpdocs/includes/controls/products.php on line 79
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 'AND CD_Main=1' at line 1 in /var/www/vhosts/theprintandgiftco.co.uk/httpdocs/includes/functions.php:359
Stack trace:
#0 /var/www/vhosts/theprintandgiftco.co.uk/httpdocs/includes/functions.php(359): mysqli_query()
#1 /var/www/vhosts/theprintandgiftco.co.uk/httpdocs/includes/controls/products.2016.php(7): mysql_select()
#2 /var/www/vhosts/theprintandgiftco.co.uk/httpdocs/includes/controls/products.php(276): require_once('...')
#3 /var/www/vhosts/theprintandgiftco.co.uk/httpdocs/index.php(151): require_once('...')
#4 {main}
thrown in /var/www/vhosts/theprintandgiftco.co.uk/httpdocs/includes/functions.php on line 359