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 (18650,17335,18446,45229,18427,18648,6609,44854,45346,28313,44531,18237,17601,45286,17771,44875,44867,44856,45042,5993,45517,44861,44863,45277,24441,31354,44711,45072,30986,19057,13,44868,18279,18900,18996,44775,45518,17756,13922,17981,45180,16935,18652,18185,17835,44685,32454,44739,3883,17839,30963,44865,44689,37267,18042,18430,44669,17237,5259,37057,30135,45177,17351,18688,22509,17114,13425,17009,18719,44878)
Unknown column 'np.person' in 'where clause'