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,17278,17009,44866,45515,24441,44766,17092,37057,18446,17556,17237,4765,18648,13988,43800,45051,18042,44867,45072,18900,17351,44765,44671,37267,18185,44689,24412,44853,44845,39676,17848,45517,44764,17981,44531,19057,44836,14622,3883,6609,45346,5388,44861,32454,17756,18650,18894,44884,31354,44855,30135,44868,19078,17771,8753,16935,5410,22509,18427,18981,45262,44851,10402,44768,13425,44669,28530,44863,17657)
Unknown column 'np.person' in 'where clause'