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 (39676,44689,44845,18279,18652,17114,45561,30963,18650,17981,44861,4686,44867,24441,45229,44875,44766,24438,17601,6862,17092,44856,45262,24412,44869,18900,45180,17904,44858,45421,30986,45567,44775,18185,17492,44687,44863,17756,44837,28313,19057,18996,44768,9341,5259,18430,44878,18286,37057,19078,16885,44671,16935,44873,44835,44884,14622,45072,44894,37267,5388,28530,13988,45515,18572,18353,18894,5410,18446,32454)
Unknown column 'np.person' in 'where clause'