how do i stop user inserting duplicate records
INSERT INTO person_tbl(person_name,person_status,creation_time,modified_time) VALUES ('$person',$status,$ctime,$mtime)
WHERE person_name NOT IN(SELECT person_name
FROM person_tbl
WHERE city_name='$person');