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 (17278,44835,18688,44868,13922,17848,39676,44685,4686,18279,18185,30986,45277,44858,44674,44837,44861,44866,14402,17771,44856,18996,5388,17755,24411,30963,17492,28530,44855,17114,4765,18652,45180,3883,44875,44870,18894,44853,17556,5993,44766,44867,18042,44869,17351,9341,44767,18286,44689,24412,45516,44854,44849,18446,16885,44640,19078,37057,45346,45042,45177,17092,17527,44865,17756,17237,45515,44768,32454,44687)
Unknown column 'np.person' in 'where clause'