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 (17835,44851,18279,44845,45518,8753,18427,44878,18648,18353,45515,17904,37267,45517,18652,44870,19057,17335,19078,44865,18301,18650,44856,3883,17848,18430,17278,24438,6875,24412,36472,16935,32454,45043,13,17601,30963,17237,18572,45346,17839,44739,44836,44894,44867,43800,17092,18996,17981,30986,39676,17657,44869,16885,44685,28530,31354,44767,18237,45277,44863,44848,17556,18185,18719,9341,18794,44855,45180,44687)
Unknown column 'np.person' in 'where clause'