$query = "SELECT question, quest_id, video from questions WHERE sub_id=$sub_id ORDER BY questions ASC LIMIT $offset,$recordsperpage";