i have this query witch concatenates firstname with last name and then find the duplicates:
SELECT import.*, import.CONCAT(nume,' ',prenume) full2
FROM import
INNER JOIN (SELECT CONCAT(nume,' ',prenume) full,COUNT(*)
FROM import
WHERE users_id=1
GROUP BY full
HAVING COUNT(*)>1) as t2 ON import.full2 = t2.full
WHERE users_id=1
i think the sql syntax is correct but i get the error: 1548 - Cannot load from mysql.proc. The table is probably corrupted
is there any problem with the 5.1.59 mysql version?