owing to the fact that table prefixes can vary between installations, in SQL queries you must manually replace the placeholder [PREFIX] with the prefix actually used in your configuration.
Example of a custom prefix query
If the prefix is mystore_ and you want to check the quantity of a product, you need to change the query from: