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 (28313,44766,44685,6782,44854,10402,17756,18572,17556,44739,44848,45262,45072,44878,18894,17351,44531,18652,18996,18981,17237,17839,18648,18650,17527,45561,3,17755,19078,44865,18042,17601,17904,45515,18237,24441,45346,44775,3883,39676,44711,18353,17492,44858,44768,24412,44640,45042,18279,17835,16885,44869,45518,18301,4765,44868,44875,44669,45277,17848,6875,18688,31354,44835,34194,24438,17703,13,44767,44855)
Unknown column 'np.person' in 'where clause'