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 (24438,44745,44674,18185,44868,17703,18719,14622,44867,19078,17981,5388,44845,44768,44866,44689,17756,17351,13,44531,17835,44878,5410,31354,45346,44762,44894,44775,44685,45042,18894,44764,18430,13425,44837,44851,5259,18648,44856,10402,44640,16935,6862,45177,18572,32454,18981,45286,3883,28530,16885,18286,18996,17335,17848,22509,45421,45567,44848,8753,6609,18650,45517,44711,18446,30135,44739,45051,45516,14402)
Unknown column 'np.person' in 'where clause'