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 (18719,44768,45177,17756,5993,44894,30135,44845,18650,18427,43800,45072,44868,44669,45516,16935,18981,17237,6782,17981,44764,44855,17114,44875,44835,45567,45277,6609,44858,17904,14402,17703,17848,44851,13425,44836,17755,44867,24412,18688,4686,3,44878,30963,18430,44856,17771,17492,45042,44674,24441,17657,5410,14622,44861,44689,45262,19057,45518,32454,44854,44865,44866,44687,17351,45517,18301,16885,45286,18996)
Unknown column 'np.person' in 'where clause'