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 (18900,44866,45072,3,17601,30135,16885,45516,18894,34194,18981,18572,17904,17237,4765,18996,44873,45277,17703,18794,16935,44884,45262,44766,13922,17009,45421,39676,44875,24411,45180,6609,18237,18446,44711,18172,18042,18353,17351,13988,37267,18185,44739,18301,18719,43800,44764,5993,45286,4686,28530,18279,30963,44671,17657,44878,44863,17092,44894,17755,44689,44674,5410,9341,17835,36472,6782,8753,18648,44845)
Unknown column 'np.person' in 'where clause'