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 (44687,44856,18446,44869,24438,44851,17237,18794,44768,18652,44674,18719,18042,45042,17848,44878,45346,14622,17835,13425,18996,45229,45421,44765,44845,44848,45072,43800,44894,18286,17756,44835,45517,18650,44867,44853,44875,44767,44762,45180,16885,17351,17771,24411,37057,17527,44855,45051,6782,44640,18237,18301,18427,3,44868,44775,18185,44764,45262,17556,30986,18172,17657,17335,28530,44858,44861,5259,44531,18648)
Unknown column 'np.person' in 'where clause'