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 (44739,18279,6609,44711,44766,4686,17848,44640,44870,44837,44685,44745,45277,44671,4765,17092,17756,45518,5993,22509,45072,44764,45516,44531,17755,17492,30963,16935,45567,39676,13922,18688,44669,14402,17351,45286,18648,44768,17278,18572,17904,18650,44868,14622,44875,44689,17771,6862,5388,44849,44894,44863,18900,18427,44861,17527,34194,44884,36472,17335,45051,30986,44851,44869,10402,44854,17981,18185,24438,44775)
Unknown column 'np.person' in 'where clause'