If your only goal is to check if a row exists in php (true or false), what is the best way to do it?
Option 1?
$result
The EXISTS is faster then SELECT COUNT(*) because the subquery will stop searching when it finds one row. It won't have to find them all and count them. It will return either 0 or 1:
EXISTS
SELECT COUNT(*)
SELECT EXISTS ( SELECT * FROM ... )