I have a table with 2 entries
Blocker , Blocked
I want to perform following query
$statement = $conn->prepare('SELECT (blocked FROM blocks WHERE blocker = :myPlayerId) AND (blocker FROM blocks WHERE blocked=:myPlayerId)');
$statement->bindParam(':myPlayerId', $myPlayerId, PDO::PARAM_INT);
$statement->execute();
I want to get values in blocked and blocker columns where my id is myPlayerId.