Sometime you get MySQL Error like
Try to follow some rules........
This is just because of some misunderstanding about MySQL queries. This error occurs, when you try to search same column, which exists in two tables. For it, you need to write proper query that you can use in MySQL.Error Number: 1052 Column 'id' in order clause is ambiguous
Try to follow some rules........
- When you write any query, must sure that you have checked that in PHPMyAdmin > SQL
- If you need to use variables in MySQL query, Try to use concatenation for that variable like:
$query = "select * from users where name = " . $username[2]; - Try to avoid special characters in MySQL query.
- Try to use updated PHP5.5.x functions.
- Make sure that your order sequence is correct.
- Again must check that every query is working correct in Local Host.
- Try to take attention on "Order by", "Limit", "Rand", "Atoms" functions
- Use mysql_real_escape_string() function with variables to avoid hacking.

