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 (17114,45286,14622,34194,18688,30135,5410,17492,44863,44767,45177,45042,45051,18301,18430,44853,6875,3883,18652,45072,37057,4686,44671,44873,5388,44640,17527,45043,18572,18172,18900,44869,44766,44764,10402,17835,18648,45517,45561,45516,8753,17703,17981,16885,45277,28313,17755,13,44849,44845,28530,44848,17556,44865,4765,44836,44875,45421,44878,18894,6862,13425,17092,6609,22509,18719,9341,24411,44835,18185)
Unknown column 'np.person' in 'where clause'