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 (17657,44865,18042,17755,17981,13922,45421,34194,44531,24412,17009,17527,17492,28530,18446,44711,17335,17556,13425,32454,37267,17756,6875,44836,14402,36472,18172,17848,44884,18794,5388,10402,44873,45561,6609,45180,18572,18894,44855,4686,45515,4765,44768,44685,44765,45072,18185,44870,18237,30135,18688,44739,44837,5410,17114,45051,24441,18719,39676,13988,44767,44674,17237,45043,17351,45346,17601,9341,31354,44849)
Unknown column 'np.person' in 'where clause'