Quote:How to write correct SQL query?
Obviously, you are very new to SQL, you need to study SQL more.
Here is a nice tutorial site: SQL Tutorial
Look at your query:
SELECT * FROM `ads` WHERE `typeColumn` = `dog`
you use quotes 3 times, the first is a table name, second is a column name and third is a literal string.
Just like with any computer language, anything matters, the quote is the string delimiter and must be used for nothing else.
Look at this page, there is examples of select: SQL SELECT Statement