I have a little problem with escaping table name. I was so stupid that i choose \"show\" for the name of table. When I use mysqli connection the escaping works fine, but its
The problem is with YEAR not with SHOW. YEAR is a MySQL function.
Best practice is to quote column and tables names all the time, makes things easy to read also.
Should be:
SELECT SQL_CALC_FOUND_ROWS `year`, `nameShow`
FROM `show`
LIMIT 0, 10