1 row matches, the result is an array $ids = sqlite_single_query($db, "SELECT id FROM foo WHERE name LIKE 'I%'"); var_dump($ids); // array(3) ?>