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 (6782,30135,45518,8753,18042,45561,44853,45516,17981,16885,44865,24441,36472,37057,44764,24438,18446,44837,37267,17904,18719,44855,18688,44848,44873,13988,18172,45051,17657,45515,45042,10402,44845,44868,4765,17009,9341,44669,44854,17237,45517,44884,45072,45229,45421,4686,18900,44671,44894,45277,44835,17771,44851,44861,44775,18427,31354,17835,5388,17335,17755,16935,19078,28530,44856,44863,28313,45346,14622,44689)
Unknown column 'np.person' in 'where clause'