I am trying to select of the duplicate rows in mysql table it\'s working fine for me but the problem is that it is not letting me select all the fields in that query , just
You can use DISTINCT like that
DISTINCT
mysql_query("SELECT DISTINCT(ticket_id), column1, column2, column3 FROM temp_tickets ORDER BY ticket_id");