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 ') IS NULL AND `product`.`status` = 1 ORDER BY `subkategori` asc' at line 4

SELECT `subkategori`.`link` as `link`, `product`.`id` as `id`, `product`.`image1` as `image1`, `product`.`title` as `title`, `product`.`content` as `content`, `product`.`status` as `status`, `subkategori`.`subkategori`, `subkategori`.`id` as `idk`, `product`.`spesifikasi` as `spesifikasi` FROM `product` LEFT JOIN `subkategori` ON `subkategori`.`id`=`product`.`idsubkategori` WHERE () IS NULL AND `product`.`status` = 1 ORDER BY `subkategori` asc

Filename: controllers/Site.php

Line Number: 105