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 (17848,5259,44848,28530,44855,17009,44766,19057,44764,18042,18648,30963,6862,24412,44669,17703,18719,45518,44775,6609,6875,17237,18172,4686,44671,44689,18900,44835,45277,37057,24411,45516,44767,44851,17981,5993,44685,45517,4765,44867,16885,17527,17351,44870,45229,30986,17835,30135,45177,44711,44861,45051,18996,22509,44863,18894,44687,17657,17756,39676,3,14622,18572,18237,44873,34194,44762,37267,44894,44640)
Unknown column 'np.person' in 'where clause'