I'm trying to delete a "boat" from boat table and associated qualifications in another table using the following code:
DELETE FROM tbl_boat, tbl_qualifications
WHERE tbl_boat.BT_ID = '$bt_id' AND tbl_boat.BT_ID = tbl_qualifications.BT_ID;
The problem is I'm receiving following error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
'WHERE tbl_boat.BT_ID = 113 AND tbl_boat.BT_ID = tbl_
' at line 2 .
Appreciate any help on this.