SELECT id, user_id, pattern, thatpattern, template FROM `aiml_userdefined` WHERE `bot_id` = 1 AND (TRUE) order by user_id asc limit 0, 10;