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 (45229,45516,18996,45177,17278,44848,39676,45262,28530,44640,17981,18286,45180,18894,44685,45561,28313,44868,45042,18652,44765,37057,44854,18794,17835,45567,44687,17848,44775,44845,44531,18650,18353,13988,17237,30986,10402,44870,45421,24438,44671,18981,17092,5993,18185,14622,44866,18430,6875,24411,17527,44745,44869,17839,44669,13425,43800,5410,44884,44837,45515,18719,45072,18237,44689,44867,17755,17756,17771,6862)
Unknown column 'np.person' in 'where clause'