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 (18996,44836,44873,18172,44855,44739,44767,44762,16885,44685,5993,43800,22509,44866,18572,36472,17092,44768,44766,9341,45277,6862,44854,31354,19078,44848,44851,4686,17278,45567,17848,18286,44775,44837,44861,44875,18427,17771,3,45051,24412,18719,17703,16935,17657,45262,45517,17981,24438,6875,18430,18185,18279,44878,17335,44865,24441,44531,17351,44687,45286,18652,45042,44711,44689,32454,44870,3883,44853,17835)
Unknown column 'np.person' in 'where clause'