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 (44689,18172,17835,18719,18900,17755,17904,44674,18650,44745,45229,18572,45518,4765,5410,22509,17848,44870,45346,45286,5259,44711,24441,5388,44669,28313,18427,17335,17492,45072,44739,44762,17756,9341,44766,44765,18286,24438,45051,45177,37267,44687,45180,44531,45277,18279,13988,44884,44863,17114,14622,44875,17278,44861,44849,45042,44856,44848,44837,17601,44851,44873,19057,24411,18652,18794,45515,39676,18430,8753)
Unknown column 'np.person' in 'where clause'