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 (24412,17556,44878,18353,32454,45051,18981,45518,17756,18719,18185,44861,18688,44863,45229,5388,36472,45042,30135,44869,44765,39676,24438,5410,17657,37057,17904,44858,17981,44873,44837,44865,44853,18652,17335,17839,9341,18900,17009,18237,13988,18301,43800,34194,19078,44739,5993,44836,10402,45561,44768,45421,18172,44875,45286,44745,30986,18446,17114,8753,44856,19057,45346,44870,18279,44685,14402,24411,18430,44848)
Unknown column 'np.person' in 'where clause'