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 (14402,10402,18719,36472,18981,45517,44640,44669,18430,44689,16935,17009,18648,45567,45277,13,18301,17657,24412,45286,18794,44687,14622,44865,17755,45421,4686,44835,18572,44848,18900,19057,18279,18652,17756,44685,44851,45518,44671,24411,6609,44863,44875,44856,37057,43800,18172,17835,8753,5259,9341,45177,18042,44866,17556,44858,18688,44766,17771,17237,44868,44837,44854,6862,44869,30986,6782,44884,44870,18996)
Unknown column 'np.person' in 'where clause'