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,18237,19078,44768,17335,17492,18572,17848,37267,17771,28313,44884,18430,5410,18042,44873,44853,18650,44689,44858,17755,17114,16935,17527,44856,45421,44849,24412,44671,24411,17756,45516,43800,18353,44764,17703,17657,44854,4765,44767,17835,45277,44685,18427,18185,4686,9341,44669,45042,17839,17351,17009,13988,18286,45177,44867,22509,44875,45518,18981,45262,44866,13922,24438,44845,44836,44765,18688,32454,14622)
Unknown column 'np.person' in 'where clause'