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 (44674,18652,44868,18688,3,45277,18286,18648,44671,44863,44878,17335,17848,24441,13,31354,17556,44689,18427,10402,45346,45421,18353,44837,32454,17601,44765,17835,45567,34194,19078,44711,44685,44869,18301,44669,45286,18237,45229,44875,18042,18650,44867,17904,17351,17237,44858,18185,45561,44861,43800,17527,44836,17657,44865,44894,44848,44767,45180,45042,17756,30963,17771,45051,5388,17492,36472,18572,13922,45043)
Unknown column 'np.person' in 'where clause'