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 (18572,4686,17839,45517,17527,44863,24438,44689,44739,17981,17601,45180,44854,45042,44669,44764,30135,44870,8753,16935,4765,17492,44858,45072,6782,45346,32454,5388,44868,18427,24441,14402,44878,44866,17657,6875,19057,43800,45515,44875,18894,19078,17237,45286,44848,44745,18794,45229,44640,45567,17351,17835,44837,17092,45177,18286,45561,45051,44711,45262,5993,44762,18185,18446,44867,45518,44674,17756,45516,44685)
Unknown column 'np.person' in 'where clause'