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 (17755,44875,4686,18981,17556,44837,34194,44878,44866,17839,44870,17848,17981,8753,45561,45072,17703,45286,9341,44762,45277,18894,17756,45051,45518,18301,45229,18996,44845,22509,44867,44764,44863,18652,17335,18446,44671,44669,45516,24412,18650,44851,44856,17278,13922,45517,18172,18572,28530,44640,28313,30986,44873,17527,37267,44884,32454,6875,18900,44858,18430,17351,17657,5993,43800,44894,17771,45567,30963,6782)
Unknown column 'np.person' in 'where clause'