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 (3,37057,44685,16885,44640,45262,44835,18900,44851,18648,44775,45561,17835,5410,44849,18981,18430,17981,18652,44845,17351,18794,45277,44867,17904,13425,17848,44884,44878,44870,39676,45042,16935,13,14622,17278,45286,6862,28530,18042,17335,44865,44768,18286,18185,45421,44687,45346,31354,44669,44855,6875,44711,17092,44766,13988,24441,9341,44531,18650,24412,44856,30986,17556,5259,44767,45518,17114,18301,4686)
Unknown column 'np.person' in 'where clause'