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 (17981,44848,45072,18427,18648,45277,17278,18688,45515,18430,44868,44671,44764,45516,44689,30986,44531,18652,44640,37267,44884,44865,44775,18894,5388,13425,14622,44894,44687,44766,45518,44867,45567,36472,44768,44835,18042,45177,4686,18237,18301,39676,44674,45421,6609,17335,45180,24441,44851,44765,3883,31354,30963,18794,37057,18572,24411,13988,18172,16885,44837,45043,18279,18650,30135,17092,13,44845,17848,8753)
Unknown column 'np.person' in 'where clause'