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 (44640,44845,19057,45042,44856,44765,5993,44878,44875,45180,4765,16885,3,44739,13922,37267,17904,8753,24441,45043,45277,30135,24412,18650,44689,18572,44671,44849,16935,45072,44868,44867,18279,24438,44768,17278,24411,17981,30986,44531,17755,44866,44861,17756,44851,44762,18794,17848,44855,44858,45515,44865,17771,44767,44711,44869,45561,18042,44766,44873,10402,6782,45518,36472,18286,18172,44687,17335,18981,3883)
Unknown column 'np.person' in 'where clause'