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 (16885,44884,44689,44878,17009,44873,18996,17756,17848,9341,28530,39676,45262,45567,45561,44894,45517,44870,17981,17839,37057,18286,6875,18794,18172,3,45180,14402,17114,30135,18301,6782,17351,44855,44745,22509,6862,18446,44865,45515,45286,3883,10402,18279,34194,19057,17755,18648,36472,17278,17835,4686,5410,44687,44854,44669,18900,44861,44858,18353,18042,44835,18185,31354,44764,17335,45072,30963,17527,30986)
Unknown column 'np.person' in 'where clause'