Thanks T, but yes...I do know that it's actually a problem with the code and not something related to the infrastructure, permissions, or anything else along those lines. The following query works fine:
SELECT
(select sum(y.ded_cur)
from ps_pay_check x,
ps_pay_deduction y...