Query ErrorSELECT tb2.*, tb1.list_trademark FROM fs_products as tb1 INNER JOIN as tb2 ON tb1.id = tb2.record_id
WHERE tb1.published = 1 AND tb2.id_same_model = '17041' AND tb1.list_trademark IN (455)
ORDER BY tb2.id ASC
Array
(
[0] => 42000
[1] => 1064
[2] => 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 'as tb2 ON tb1.id = tb2.record_id
WHERE tb1.published = 1 AND ...' at line 1
)