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 (16885,44711,17835,17756,6782,45517,6862,17237,5410,45051,44849,45516,36472,44640,17755,44687,18353,45072,18648,24411,44848,30135,44868,31354,44531,44685,18650,44854,4686,24412,44765,18446,24438,17556,18900,32454,8753,44894,6609,17839,18286,44762,45277,44851,28530,17114,44689,18894,17904,45262,18427,44856,4765,18279,45042,44671,18172,22509,44739,44764,17981,44858,6875,44835,45286,44865,45177,17601,44669,17351)
Unknown column 'np.person' in 'where clause'