you need to specify what column for the where and the =1 i have no clue what you are wanting there
SELECT * FROM ( SELECT vRefTable FROM mainmenu WHERE iMenuId=58 )
WHERE
-- your column name here
vFieldsName IN
(SELECT vFieldsName FROM TableField WHERE iMenuId=58
AND bIsPrimary=1 AND iTableFieldId=11)
Reputation Points: 133
Solved Threads: 141
Veteran Poster
Offline 1,162 posts
since Aug 2008