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 (16885,4686,44869,17556,18996,44689,36472,44835,44745,17904,45043,44711,3,17492,24411,17601,45051,18648,17335,17756,17835,44640,30963,6609,18430,45042,44674,18286,45518,44836,24438,44878,45177,30986,45516,14402,44868,44739,44669,18427,45567,45515,44531,18688,6862,18353,44775,17092,44685,18894,44767,8753,44867,5410,43800,44764,5388,18719,45286,44687,18185,44894,17657,44762,17351,44855,31354,45277,44854,44866)
Unknown column 'np.person' in 'where clause'