I have this schema 
when i'm trying to add a new isp_share record I get this error

although isp table has a record with id=3

what could be the problem?
I have this schema 
when i'm trying to add a new isp_share record I get this error

although isp table has a record with id=3

what could be the problem?
From documentation http://dev.mysql.com/doc/refman/5.0/en/create-table-foreign-keys.html
The parent and child tables must use the same storage engine..Corresponding columns in the foreign key and the referenced key must have similar data types
Also do a check of the other tables.