Error:SELECT * FROM package WHERE id != 122 and package_type_id= and active=1 and package_name_th is not null order by sort DESC
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 active=1 and package_name_th is not null order by sort DESC' at line 1