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 (30135,45277,5388,22509,24441,44868,44765,45346,45517,37267,17601,18572,44878,13,45561,4765,3,17092,17904,18430,17351,17756,44689,6862,30986,18652,18185,17848,36472,5259,44768,13922,44531,18996,44858,45180,45567,43800,39676,18353,45229,45286,18237,17981,44685,24412,31354,44836,9341,6875,45072,44849,44674,18650,18172,44855,44865,14402,45262,17755,17527,44869,44837,44767,17771,28313,44866,17703,18648,14622)
Unknown column 'np.person' in 'where clause'