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 (45561,4686,32454,18279,17009,18719,43800,44854,45177,44875,44669,17981,17527,17835,18185,18237,44861,17839,30963,3883,44849,17755,45516,18042,44671,17092,24441,45567,34194,44856,30986,13922,36472,44894,24438,18648,18172,10402,17756,13,18652,44855,17848,24411,6782,14402,6875,44762,44674,44845,44848,45346,45517,44775,44837,18981,18794,44640,44689,44868,44765,45421,44835,44873,45277,45180,44865,30135,18996,45229)
Unknown column 'np.person' in 'where clause'