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 (17904,44853,6609,17114,17278,8753,44739,30135,44745,17092,44856,18572,44669,18446,18996,31354,18279,18900,44685,24412,19078,44875,17556,17756,44894,45072,34194,14402,36472,45043,13922,45286,39676,44687,44531,16935,44863,18042,44768,10402,3,44767,17839,4686,44878,44870,18650,45042,17492,17657,44854,44869,44866,18981,45516,44775,17703,18427,5993,44849,44766,30986,17981,4765,18172,3883,17835,5388,6875,45277)
Unknown column 'np.person' in 'where clause'