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 (18794,5410,44765,44764,28530,44766,44869,30986,44870,44669,3,18430,45229,13988,18279,18652,3883,14622,4686,17835,44894,17556,19078,45567,44739,44868,9341,44640,18185,45072,28313,18353,44861,18572,44687,44835,31354,17703,44531,44884,22509,18894,18981,44768,34194,24438,45177,39676,17237,44689,17351,24412,44873,6875,44851,44837,44848,17335,6782,24441,10402,44762,18688,17848,45262,5993,45042,45043,44836,18446)
Unknown column 'np.person' in 'where clause'