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 (18572,24411,45346,44856,4686,45567,44674,45518,17848,18652,44767,24412,17527,44766,5410,17556,44711,8753,44764,44739,44858,17278,17092,44869,44685,43800,9341,4765,17755,17009,44875,16935,5388,18446,6862,44861,45177,44640,18894,5259,44689,44873,31354,44745,39676,18900,17981,18353,19078,45042,17351,44854,17237,44762,18430,45516,18286,44849,45277,44884,6609,44878,18185,45043,6782,17771,3883,30135,18042,44848)
Unknown column 'np.person' in 'where clause'