When I write an SQL statement, I usually write it like this
SELECT COUNT(*) FROM catalogsearch_query AS main_table
But I found that some people write SQL statements like
SELECT COUNT(*) FROM `catalogsearch_query` AS `main_table`
Do I have to use `?
You don’t have to use backticks. However when you’re using reserved keywords as table or field names, then you have to enclose them in backticks for them to work.