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 (18042,44689,4765,44867,19057,45286,18237,45180,44894,44858,18185,44674,5388,44739,45518,18648,44836,17237,18894,18286,4686,31354,17848,44845,18430,44768,45072,17657,17092,17981,28530,37267,44878,9341,44856,16885,39676,44764,18900,17492,17278,19078,18650,18652,17351,44851,44669,44853,44863,45517,17335,13988,44861,44855,17835,36472,18981,44875,18688,45262,6609,5410,45177,6782,44866,45277,44765,13,14622,44687)
Unknown column 'np.person' in 'where clause'