SQL Error: 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 'FROM kamanit_core as c
WHERE
act=1
and top in ('1')
and act=1
...' at line 4 at /var/www/user_114220/data/www/kamanit.ru/content/results.php(50) : eval()'d code line 20
Array
(
[code] => 1064
[message] => 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 'FROM kamanit_core as c
WHERE
act=1
and top in ('1')
and act=1
...' at line 4
[query] =>
SELECT SQL_CALC_FOUND_ROWS STRAIGHT_JOIN
c.id, c.name, c.lnk, c.page, c.content, c.content2, (SELECT count(id) from kamanit_core WHERE top=c.id LIMIT 1) as photo,
FROM kamanit_core as c
WHERE
act=1
and top in ('1')
and act=1
and page="object"
ORDER BY ord
LIMIT 0,8
[context] => /var/www/user_114220/data/www/kamanit.ru/content/results.php(50) : eval()'d code line 20
)