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 (17009,17835,44867,44854,45043,44869,30963,44851,8753,45262,44711,18172,10402,44875,45051,17351,45180,44878,44762,18894,18572,45229,44836,32454,24411,14622,44856,18430,17237,31354,17703,44687,17756,5388,44674,17601,14402,44858,44764,18900,4686,16935,5410,45286,13988,18237,6609,18652,44845,3883,45518,18650,24441,18279,45517,45042,17848,18719,18794,6862,22509,24412,17092,44868,4765,44853,39676,44745,16885,45567)
Unknown column 'np.person' in 'where clause'