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 (5388,18794,8753,44878,17981,17771,44884,24441,17601,17527,44674,18900,24412,44640,16885,17756,44854,18172,45561,18185,45229,5410,39676,45515,45043,45516,17351,45346,44762,44765,44861,28313,45051,37267,3,44853,45518,17335,45277,44875,44669,44775,45567,44685,18301,44858,13988,17657,30135,45262,17848,30986,5993,18353,13425,44711,18237,17114,45177,34194,3883,44867,10402,45042,18446,18430,44768,44689,13922,30963)
Unknown column 'np.person' in 'where clause'