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 (17114,17904,45561,44856,44870,44858,17839,6782,5410,18185,3883,44768,5993,45042,39676,17237,44855,44894,17657,13425,44640,44531,30963,8753,6609,18172,44851,44854,4765,32454,17601,18719,18652,44837,17835,45229,18894,45517,24411,31354,44674,30986,44865,45277,18237,44866,24438,36472,45286,18900,5259,5388,13922,18430,44845,44848,28313,45346,18572,17848,44878,14402,44711,18688,44767,45262,45515,17278,44875,45518)
Unknown column 'np.person' in 'where clause'