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 (24438,44689,24441,30135,43800,3883,14402,44865,45518,17848,24412,34194,44640,44845,44674,18648,8753,45517,44858,4686,37267,13,17114,6782,31354,18042,17703,3,17756,45277,13922,17492,17981,17009,44835,14622,44765,44848,17351,17092,18894,45286,44866,32454,18650,44878,5388,44870,44856,10402,6862,44837,18172,44836,44854,44768,18981,44855,44851,18652,18688,44868,44531,44687,44894,18719,45229,18427,18900,17755)
Unknown column 'np.person' in 'where clause'