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 (45277,18981,44863,44853,44848,18353,44858,44836,44689,44739,17657,17703,6782,37267,3883,45346,18688,4765,18430,24412,45515,45180,44875,5388,18572,30135,18237,45561,13425,3,18648,17492,44711,44866,34194,17981,14402,17835,45177,44671,17237,24441,28313,18996,17092,17848,44685,44767,44884,31354,44762,44687,19078,43800,17527,44855,17278,44854,13,30986,44861,44865,6862,18894,4686,44851,6609,17114,45517,44878)
Unknown column 'np.person' in 'where clause'