Convert db->getRow to db->getValue when only one column in query