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 (45072,17114,18185,44674,45286,18688,43800,18446,13988,44869,18279,44858,6862,17835,17839,44671,24411,44640,24412,18652,44854,18042,17981,28313,45567,18894,44856,17756,39676,18572,44775,17771,45180,17092,28530,44878,18430,44765,45177,18981,17755,6782,30986,45051,44849,34194,44851,17335,17351,18996,44875,4765,18301,37267,37057,22509,44848,44766,18650,18719,45262,45277,16935,44685,44687,44867,44669,44531,45515,45561)
Unknown column 'np.person' in 'where clause'