Function QueryArray: ---SELECT DISTINCT `State`, `StateCode` FROM `RandomActsOfKindness`.`States` WHERE `StateCode` IN (SELECT `StateCode` FROM `RandomActsOfKindness`.`Stories` WHERE `Approved` = 'Y') ORDER BY `State` ASC;--- SELECT command denied to user 'gplum2'@'localhost' for table 'States'