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 (18650,13988,18446,44858,18900,37267,34194,18652,18688,22509,44762,17771,44866,45043,44640,18981,4686,44855,17492,32454,18237,17009,19078,17114,44837,30135,6875,45567,18185,4765,45515,18279,28530,44867,14622,44873,44868,45180,44674,17981,17278,44875,6782,44685,44848,36472,45421,44745,13425,18353,44849,44765,18427,14402,17092,5388,18042,17351,3883,13,30963,5259,44863,6862,45286,17237,19057,17335,43800,30986)
Unknown column 'np.person' in 'where clause'