$ query = "select * from where where subject = '". $ subject. "' and type = '". $ type. "' ORDER BY message_id desc LIMIT $ limit, $ per_page";
This query does not sort records by unique index. Why? If I remove LIMIT, then everything is fine
$ query = "select * from where where subject = '". $ subject. "' and type = '". $ type. "' ORDER BY message_id desc LIMIT $ limit, $ per_page";
This query does not sort records by unique index. Why? If I remove LIMIT, then everything is fine
Source: https://ru.stackoverflow.com/questions/19753/
All Articles