A Database Error Occurred

Error Number: 1064

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 `tb_product`.`cat` = `tb_product_cat`.`id` ORDER BY `tb_product`.`orderin...' at line 3

SELECT `tb_product`.`name`, `tb_product`.`kode`, `tb_product`.`url`, `tb_product`.`img`, `tb_product`.`sudahdicopy` FROM `tb_product`, `tb_product_cat` WHERE `tb_product`.`publish` = 1 AND `tb_product_cat`.`id` = AND `tb_product`.`cat` = `tb_product_cat`.`id` ORDER BY `tb_product`.`ordering` ASC

Filename: models/Crud_model.php

Line Number: 25