Convert after_message_id to integer
Rename var; Fetch in required order