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 (45515,45262,44873,18652,44865,44848,44870,18353,44856,44884,17839,18894,5388,44775,44878,44867,24441,30963,9341,44894,18688,44674,14402,44671,17755,5259,16885,44689,44765,39676,17848,13,17835,44837,19078,44854,45286,44685,18172,10402,28530,18981,8753,17756,18301,37267,44849,44739,44869,18719,18572,44858,45277,17351,17092,45180,44851,44836,24412,44845,18042,19057,45051,17009,18427,3883,30986,45346,17981,36472)
Unknown column 'np.person' in 'where clause'