Can you in PDO run two select queries back to back and get the row count for them? If so how come when I try this: $selectTableOne = $db->query("SELECT * FROM table1 WHERE status = 1"); $rowCountOne = $selectTableOne->rowCount(); $selectTableTwo = $db->query("SELECT * FROM table2"); $rowCountTwo = $selectTableTwo->rowCount(); if ($rowCountOne > $rowCountTwo) { /** Do something. **/ } It gives me this error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'. Any pointers why? I know that both the tables and the columns that I selected exist, not sure why it fails though.