SELECT COUNT(t1.id) as db FROM (SELECT t.id FROM new_termek_to_kategoria as ttk INNER JOIN new_kategoria as k ON k.kat_id = ttk.termek_kategoria_id INNER JOIN new_termek as t ON ttk.termek_id = t.id WHERE t.status = 'igen' AND k.status = 'y' AND t.gongyoleg = 'n' AND ttk.termek_kategoria_id IN (74,75,76,77,78,163) AND t.gyarto = 9GROUP BY t.id) as t1
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 'BY t.id) as t1' at line 7
Fájl: /home/emelofalhu/public_html/include/center/termekek.php sor: 200