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 (44854,18446,10402,39676,5993,45262,4765,17904,8753,45286,18172,44671,36472,19057,45277,44836,13988,17556,44873,18572,17601,44739,45072,17835,17848,45421,45515,44849,45229,18719,24412,44764,3883,17009,13,44768,14622,44868,17351,30986,6782,44866,44835,17755,16885,17657,17114,44765,45518,44837,5259,44856,44685,44855,17981,24441,18279,4686,30963,44640,44865,18688,5410,18996,45517,22509,18900,44851,45042,5388)
Unknown column 'np.person' in 'where clause'