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 (18981,44849,44867,44861,44884,44869,44865,44775,3,18185,45286,6609,45561,44853,44848,44669,17981,44878,44851,6782,44854,5388,45051,44531,18572,8753,9341,10402,17771,45516,13,32454,16885,18996,44863,45177,44689,44739,44837,45042,17756,18430,18719,45421,24412,18427,14402,45518,16935,3883,37057,17335,44711,4686,24438,44764,44855,44836,45262,44894,13988,17657,17839,28530,44835,34194,19057,17278,18353,18301)
Unknown column 'np.person' in 'where clause'