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 (14622,18430,4765,44835,17657,18042,5259,18900,44875,18652,17755,18981,16885,9341,44775,45518,37057,34194,17981,24412,17492,45051,37267,44711,24441,44851,18427,13988,44768,44856,44854,44685,44867,19057,18172,44671,30986,44531,44687,17848,28530,6862,44765,17904,17237,17839,17114,18237,18794,17092,44762,24411,17835,44669,44848,44868,45567,17703,45072,28313,3,16935,18719,36472,17351,45229,44674,44689,18572,18279)
Unknown column 'np.person' in 'where clause'