modifying query to allow for non-default table prefix
fixes missing argument php warning
Merge pull request #83 from bdolor/api

modifying query to allow for non-default table prefix