Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (17981,18353,44766,17657,18650,18688,13425,17278,18894,9341,44671,44837,17335,30986,3883,19078,17009,44868,17092,45229,18279,44764,18301,22509,44875,45567,44851,44674,6609,34194,39676,45180,17835,44849,5388,4686,44870,5993,19057,17771,44711,45286,45072,37267,18652,45051,44867,44836,43800,45262,3,24441,18185,17703,45515,16935,44855,14622,44865,18427,14402,44835,44640,6862,36472,13988,6782,18719,44853,17492)
Unknown column 'np.person' in 'where clause'