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 (44861,45517,18981,45072,45229,18172,17904,9341,19078,17237,5388,44858,24412,44863,6782,18042,45277,17556,28313,10402,44878,44762,30135,44766,45561,31354,18996,18237,34194,44869,44873,16885,44836,44745,44884,44854,18279,44764,13922,17351,4765,44855,17092,24441,17657,44849,17755,44768,44640,36472,44775,45346,17601,45518,17335,18652,18185,18648,44865,3,18353,44870,18900,18572,44848,5259,14622,44875,17527,6875)
Unknown column 'np.person' in 'where clause'