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 (44884,44853,17237,18894,44855,18446,44739,19078,44861,32454,13425,44640,18652,3883,17848,45516,44689,44870,14622,44674,44767,45177,44868,44867,17278,45421,17351,45515,44894,5259,18430,9341,44687,17092,44878,44875,30135,18650,14402,36472,30986,44869,18981,6782,44856,18996,44669,17657,3,45561,10402,45277,44835,17556,44685,39676,17839,24411,44873,45518,45042,44863,8753,17009,44837,45262,18900,44765,18185,18353)
Unknown column 'np.person' in 'where clause'