Notice: Undefined variable: max in /home/ on line 1106Notice: Undefined variable: min in /home/ on line 1109Exception: Error: 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 p.status = '1'' at line 1
Error No: 1064
SELECT COUNT(DISTINCT AS total FROM product p WHERE UNIX_TIMESTAMP(p.date_available) <= UNIX_TIMESTAMP('2022-06-30 16:49:56') AND (p.price > ) AND p.status = '1' in /home/ on line 43