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 (18794,8753,17756,4686,44863,44858,24411,44851,6862,45515,17839,14622,44894,17092,45421,18185,44861,45072,45517,37057,10402,24412,45277,44674,30963,16935,16885,18353,44765,44854,44849,22509,36472,44768,17771,44767,18894,44884,17114,44685,18042,44669,17904,44873,44869,6782,44687,13,44764,6609,4765,44845,44855,13425,28313,5410,45051,17009,45346,18900,45180,17703,17755,24441,17278,34194,17848,44868,18427,18981)
Unknown column 'np.person' in 'where clause'