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 (17904,14402,44868,5410,17492,44856,44764,17848,44766,18237,44671,17114,44878,16935,18353,18185,44866,17237,44894,4686,17657,45042,17092,45421,17335,18430,24441,44739,4765,17556,17981,44685,44849,24438,19057,28313,44768,37267,45515,45229,44765,44745,22509,17601,45517,45072,5993,13922,8753,44858,18446,32454,18648,17756,44711,18172,39676,5259,34194,44689,45286,13,44640,6875,17351,14622,5388,44853,9341,18900)
Unknown column 'np.person' in 'where clause'