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 (18301,18185,44765,36472,44640,17839,45517,45286,17351,17771,5410,8753,44848,17981,44764,18430,24411,44674,9341,18042,18719,44745,17114,28313,44869,18894,44870,45346,44873,18286,14402,6862,44767,13922,17657,32454,45567,18572,17835,44669,44884,44711,17492,30963,18794,4686,44845,6609,19078,18427,44531,10402,3,44858,30986,17756,14622,13425,18652,18981,45516,44867,45042,30135,44855,44878,45072,44762,45262,24412)
Unknown column 'np.person' in 'where clause'