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 (30963,16935,44531,44867,44861,44856,17657,18286,44851,4686,18185,44711,17981,44878,3,17835,4765,8753,44671,44863,44866,44869,13922,18427,45515,18719,30986,28313,45518,6782,18301,44854,44836,9341,31354,37267,44685,13988,44894,5259,18652,18353,17904,3883,18900,16885,43800,44640,18430,18572,45072,44689,6862,44765,44849,45567,10402,18981,44870,18172,45346,13,24411,44845,45051,24412,17009,39676,44848,17601)
Unknown column 'np.person' in 'where clause'