The problem is you are executing the statement mysql_fetch_array twice before printing the result for the first time and so its getting from the record number 2