select * from hit_table where ID in ( ?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?) order by visit_id, time