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 (13922,16885,6875,8753,45286,14402,44837,18981,44685,44875,45229,18900,30986,17351,45421,17114,18572,5259,17835,44868,44858,18042,24412,17703,44851,24441,45517,44767,17771,44835,45561,6609,45042,44863,44853,17839,17237,17755,17092,44884,44766,45346,18648,44674,44687,9341,44845,17848,44671,18353,17556,13988,44745,5410,17492,44739,4765,18652,5993,45180,44640,18185,17904,3883,44861,44866,17756,18719,31354,18794)
Unknown column 'np.person' in 'where clause'