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 (18794,18301,45421,6782,37057,17351,18894,44685,17755,44674,45051,19057,28530,45177,45516,24411,45277,18572,44836,36472,45517,44764,13,19078,17492,44875,5259,44768,44868,44531,44867,17904,18185,45346,44851,31354,18981,24438,44765,44853,9341,3883,18996,18446,5410,44870,5993,18172,45518,44767,32454,44855,34194,4765,17237,44869,30986,17771,17335,44837,30135,18353,44858,18648,18279,44873,22509,13922,13425,5388)
Unknown column 'np.person' in 'where clause'