"Full error message"
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0,1' at line 1 in C:\web\widgetcorp\includes\functions.php on line 29
Database query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0,1' at line 1
I did replace that string, with your code, but it still returned the same error.
Its got something to do with the LIMIT statement in sql, or I've totally screwed up something else, I guess what I'm asking is am I crazy or is that syntax correct?
It just repeated the same error, sorry for not being more clear earlier and thanks for your help.
UPDATE: I found the error, thanks for your help. The error had nothing to do with the MYSQL query it had to do with me changing a couple ambiguous variable names on my content page and missing one of them. I still wonder why it specifically pointed to the query though.. oh well working now, thanks for taking your time to look at it.