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 (45567,17527,18172,17657,17756,18794,18286,17556,17237,18652,44685,44849,13425,44866,44856,16885,9341,44640,32454,45072,17703,3,44894,45286,44836,45561,6862,13922,17092,44775,44674,13988,4765,44858,18981,45229,44854,44868,5993,45517,39676,37057,18237,44870,45516,24441,30986,45043,14622,22509,44845,44767,18719,44878,24412,17981,4686,44762,44873,44884,44875,36472,44739,17771,44768,44867,44851,18185,45051,6782)
Unknown column 'np.person' in 'where clause'