SQLyog logs all the query that it uses in the History Tab. SQLyog will stop executing queries when it faces an Error while dropping a relationship. Check out the History Tab for a series of Queries that SQLyog has executed and you will be able to point out the query that is causing the error.