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 (24438,45517,44835,18353,44869,16935,18652,18185,17527,43800,17237,18279,45277,28313,44745,13,44640,44739,44851,5993,17755,45177,45042,4686,3,13988,30963,44775,18894,17848,44863,44875,6862,44866,9341,45262,18172,18301,45421,18794,18650,17839,45516,17904,44687,18430,28530,19057,44884,18719,17981,19078,17756,45180,36472,44861,44762,6782,44870,45229,17009,45515,44837,18286,16885,8753,5410,18648,44669,17278)
Unknown column 'np.person' in 'where clause'