fixed LIMIT in SELECT