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 (17657,17114,44854,44856,44878,44762,5388,18172,24441,45051,6875,44858,44836,45180,44685,44669,6609,17981,44849,18185,44870,18652,44640,17092,17351,19078,44845,32454,18572,13425,24412,18648,39676,16935,31354,44674,17756,17335,44671,3,14622,44745,17492,45567,18650,44869,9341,45229,18279,28530,10402,44835,17237,18430,18301,18286,44775,3883,18237,17848,44687,44875,30135,44866,44884,17835,37267,6782,18981,44531)
Unknown column 'np.person' in 'where clause'