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 (18572,6782,44762,4765,45286,18652,45561,45517,45180,44689,9341,45346,44687,44835,45072,3883,18648,44870,6609,24412,44836,44671,45043,44894,13,17492,44856,18185,44854,24438,18981,19057,18237,19078,44869,44764,39676,30986,18719,3,45567,45277,31354,44868,17904,44873,17556,18688,44866,44669,45516,45262,13922,18446,44851,44775,44837,44875,18279,44765,44766,45042,44853,44867,17839,18353,16935,44531,44865,5388)
Unknown column 'np.person' in 'where clause'