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,37267,44855,18650,44764,17601,45346,17756,44767,45072,45517,14622,32454,44869,17278,45262,17237,18042,18894,45518,5388,17848,17904,18719,17839,18900,18185,45561,45051,45042,18648,3,17981,18688,44671,18996,16885,44851,18794,44689,44848,44669,14402,5410,44875,18279,44858,45043,44711,16935,17657,44745,44685,5259,17755,44867,19078,44674,3883,44768,43800,13922,6609,45180,44868,44894,44836,24438,44849,19057)
Unknown column 'np.person' in 'where clause'