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 products.pId>'') OR pOrder>)) AND products.pId NOT IN ('giftcertificate',...' at line 1
Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /home/tektit5/public_html/vsadmin/inc/incfunctions.php:1821 Stack trace: #0 /home/tektit5/public_html/vsadmin/inc/incproddetail.php(951): ect_fetch_assoc(false) #1 /home/tektit5/public_html/proddetail.php(405): include('/home/tektit5/p...') #2 {main} thrown in /home/tektit5/public_html/vsadmin/inc/incfunctions.php on line 1821