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 (44861,17904,5410,44849,44762,45346,18286,30963,45516,8753,18042,44764,18572,13425,28530,17703,45286,44835,39676,44745,44851,3,18301,14402,44766,17981,44845,45262,18719,36472,45421,45567,17756,17335,44685,6875,44739,18794,37267,44767,24411,18430,44671,17009,17237,44775,44674,17492,28313,17601,22509,44875,44869,18652,44854,6609,44711,18894,44689,44848,18996,45051,19078,45517,18981,43800,5259,18648,9341,45277)
Unknown column 'np.person' in 'where clause'