LEFT OUTER JOIN rule sod ON (
(
xd.accou_id = sod.id
where xd.item_type = 28
)
OR (
pa.transaction_id = sod.id
AND pa.transaction_type = 28
)
)
my Error
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where xd.item_type = 28 ) OR ( pa.transaction_id = sod.i' at line 147