Have you run the query against the database to make sure it is correct? Echo that query out and copy & paste it into phpmyadmin or something like that. You might refer to a non-existent field into your query (mistype?).
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
Your SQL query has errors where you write the table names. Anything in back-ticks (`) is taken literally so the query is read as though you're looking for tables literally named dom.user_comments and dom.members within the current database (assuming, dom). If you really must use back-ticks then a corrected query would be: SELECT * FROM `dom`.`user_comments`, `dom`.`members` WHERE ...
The Following User Says Thank You to Salathe For This Useful Post: