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 (18688,17835,44866,9341,45043,13425,44845,17756,44640,44764,45517,18648,18900,18301,24412,17848,31354,44849,44765,18996,22509,45051,17703,8753,44867,34194,44851,17556,17771,45262,17335,44531,18981,44894,24438,17839,44685,17009,18650,17657,17981,17114,18719,10402,45177,18430,5410,44669,44865,6609,44766,18652,45421,17904,44768,24441,44855,30986,18185,5388,44853,44671,18446,30135,32454,13,45516,44835,13922,44869)
Unknown column 'np.person' in 'where clause'