Chyba databáze

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 `f`.`id_file_type` = 'master_img' LIMIT 20' at line 8

SELECT `pt`.*, `p`.*, `f`.`file_name`, `f`.`id_file_type` FROM `product_join_category` as `pc` JOIN `product` as `p` ON `p`.`id_product` = `pc`.`id_product` JOIN `product_text_cz` as `pt` ON `pt`.`id_product` = `p`.`id_product` JOIN `file` as `f` ON `f`.`id_product` = `p`.`id_product` WHERE `p`.`is_deleted` =0 AND `p`.`id_product` != '69' AND ( ) AND `f`.`id_file_type` = 'master_img' LIMIT 20

Filename: modules/frontend/models/F_product_model.php

Line Number: 225