MYSQL ERROR : 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND `db_document_type_id` = 6 AND `is_published` = 1' at line 1
SQL : SELECT `id`,`temp_name` FROM `db_document` WHERE `id` = (SELECT `id_document_gallery` FROM `db_document_has_gallery` WHERE `id_document` = ) AND `db_document_type_id` = 6 AND `is_published` = 1
MYSQL ERROR : 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `n`.`name` IS NOT NULL AND `n`.`db_document_type_id` = 2 ORDER BY `n`.`doc_o' at line 3
SQL : SELECT COUNT(*) as cnt FROM ( SELECT `n`.*,`p`.`name` AS `parent` FROM `db_document` AS `n` INNER JOIN `db_document` AS `p` ON `p`.`id` = `n`.`db_document_id` WHERE `n`.`id` = AND `n`.`name` IS NOT NULL AND `n`.`db_document_type_id` = 2 ORDER BY `n`.`doc_order` )SubT
MYSQL ERROR : 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `n`.`name` IS NOT NULL AND `n`.`db_document_type_id` = 2 ORDER BY `n`.`doc_o' at line 1
SQL : SELECT `n`.*,`p`.`name` AS `parent` FROM `db_document` AS `n` INNER JOIN `db_document` AS `p` ON `p`.`id` = `n`.`db_document_id` WHERE `n`.`id` = AND `n`.`name` IS NOT NULL AND `n`.`db_document_type_id` = 2 ORDER BY `n`.`doc_order` LIMIT 0, 50 MONTEX | výroba nástaveb na nákladní automobily