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 (17278,28313,39676,30135,18572,17009,44863,44711,17492,18185,44836,17335,45043,18286,4765,18427,18996,18301,9341,44835,45229,17237,45177,18794,6875,24411,17848,18719,16935,44873,44869,17839,31354,18353,44866,13425,44854,45262,19057,44671,44685,3,44867,4686,17904,17755,19078,45180,17114,24441,44855,18042,18237,44531,44849,17601,44861,44764,45286,44837,18981,5388,18430,45346,45567,14622,5993,18446,17771,36472)
Unknown column 'np.person' in 'where clause'