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 (17114,44853,17278,45286,44669,17703,17771,45043,45515,18301,37267,44867,44854,32454,24412,18650,18446,13425,28313,3,10402,5388,4686,44865,44745,18237,17601,18042,37057,3883,44671,18981,44878,18900,45262,39676,44835,44858,31354,17981,44640,45561,44856,30986,30135,45277,8753,17756,6609,17835,44837,18430,17527,18172,44851,44868,44894,44674,44845,44870,44869,44855,17904,16935,28530,13922,18286,6782,6875,45567)
Unknown column 'np.person' in 'where clause'