-
Error 1064
Buongiorno!
mi compare questo errore, qualcuno mi può aiutare ad eliminarlo? :-(
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 ') union select b.`category_id` from `dvnsp_discuss_category_acl_map` as b ' at line 1
SQL=
Codice:
select c.`id` from `dvnsp_discuss_category` as c where not exists ( select b.`category_id` from `dvnsp_discuss_category_acl_map` as b where b.`category_id` = c.`id` and b.`acl_id` = '2' and b.`type` = 'group' and b.`content_id` IN () union select b.`category_id` from `dvnsp_discuss_category_acl_map` as b where b.`category_id` = c.`id` and b.`acl_id` = '2' and b.`type` = 'user' and b.`content_id` = '962' ) and c.`private` = '2'
Grazie Mille!!!
-
L'errore 1064 indica che all'interno della query c'è un errore di sintassi.
In questo stralcio di query, noto qualcosa di strano (come dice il messaggio d'errore: near ...):
Codice:
IN () union select b.`category_id` from `dvnsp_discuss_c
IN () (senza argomenti) è un errore sintattico, quindi l'errore è lì.
-
Grazie mille per la celerità nel rispondere! :thumbsup:
Scusa per la mia ignoranza ma dove devo operare per correggere l'errore?