SELECT COUNT(*) FROM `data` WHERE `name` LIKE '%```sql ' UNION SELECT 1,2 FROM information_schema.tables -- ```%' The used SELECT statements have a different number of columns