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 (6609,19078,8753,4686,18430,44863,45518,17601,37267,44669,4765,45042,18894,17848,24438,45421,18996,17092,44768,44687,44849,44867,18652,45229,17556,44640,6862,13922,43800,44856,17237,18279,45277,44875,13,18446,18688,44689,45515,17756,24411,44745,45561,44866,6782,30135,18572,44878,18172,24441,44685,13988,17835,5388,44765,17114,45517,30986,44836,17755,17657,44775,18981,10402,18794,44531,44766,18719,16885,44767)
Unknown column 'np.person' in 'where clause'