Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id 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'