SeanKann;11000808 wrote:If I run the command in phpmyadmin it displays the information I need
What "command" are you referring to? Did you echo out the SQL query string exactly as it is defined in your PHP code? If not, then you might not be executing the same SQL query as your PHP script is, thus making your phpMyAdmin results irrelevant.
Either way, did you read Derokorian's post (and mine before his - we both talked about the same issue)? As he points out, the link in my signature gives a full explanation.
If you still can't figure it out, try echo'ing out the SQL query string in your PHP script and post it here for us to see. One problem I now notice is here:
AND promoted = \'Complete\'
What is the purpose of those two backslashes?