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 (18652,18572,44671,17756,5410,6782,9341,44851,17092,13,44837,17351,6862,18719,44762,45262,14402,44745,17009,18279,45177,44768,17835,44775,44739,45286,18237,45518,17755,18981,18996,37057,44849,43800,17657,18185,30135,3883,24412,44854,44766,18427,18648,17981,44845,17904,13988,13425,36472,44866,45517,17237,17527,14622,37267,18894,44863,44865,17492,32454,17848,44867,5993,39676,17771,44875,44687,5259,18446,44764)
Unknown column 'np.person' in 'where clause'