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 (18650,44865,44775,45180,44711,5993,6875,45043,44739,4686,36472,18794,30963,5388,13425,17756,44868,44854,19078,18185,45051,5410,18652,3,45229,17904,44856,45262,34194,45346,43800,44861,19057,17237,39676,44858,44866,8753,37057,45421,6862,18172,45516,18430,44766,18894,44870,17092,13988,18353,44745,17981,4765,44848,44894,5259,45517,16935,44689,45277,31354,44765,45567,17835,44855,17657,17009,18648,44835,18279)
Unknown column 'np.person' in 'where clause'