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 (17335,18172,45516,5259,44853,44685,44856,5388,13988,45421,17114,19078,45229,17278,3,44855,16935,44837,45042,30135,44767,36472,44875,9341,17839,17981,44739,22509,45515,17492,45286,44858,18430,13425,17657,5993,30986,18650,18652,18794,18185,16885,24438,17556,17848,45518,44836,44768,6782,45277,3883,44873,44766,44669,44849,17237,17835,18572,44868,45567,4765,17601,18648,44884,28313,17351,28530,10402,44869,44674)
Unknown column 'np.person' in 'where clause'