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 (14402,17835,44853,4765,13922,44836,45517,44689,17657,32454,18301,19057,17092,18794,44764,18446,18237,17981,45229,39676,13425,5993,45518,6609,30963,44878,44855,44894,44875,19078,10402,44884,24441,17527,31354,6782,44868,18894,17351,4686,18996,44867,18427,30986,44745,18042,44531,24412,36472,5388,5259,44865,17703,28530,18719,14622,44854,44861,45043,5410,18185,17848,18900,44845,44711,8753,17237,45177,17601,6875)
Unknown column 'np.person' in 'where clause'