What's wrong with my MySql query ?!
Posted
by Anytime
on Stack Overflow
See other posts from Stack Overflow
or by Anytime
Published on 2010-03-09T02:38:57Z
Indexed on
2010/03/09
2:51 UTC
Read the original article
Hit count: 615
mysql-query
|php5
This is a query I am doing with mysql using PHP
This is the query line
<?php
$query = "SELECT * FROM node WHERE type = 'student_report' AND uid = '{$uid}' LIMIT 1 ORDER BY created DESC";
?>
I get the following error
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 'ORDER BY created DESC' at line 1
© Stack Overflow or respective owner