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 (44745,17556,18996,44873,45043,44775,16935,45516,17092,13922,17703,44640,45517,17601,18430,32454,17755,44845,14402,17981,45277,18172,18286,6875,44837,45072,17904,3,5410,10402,18894,17009,37267,44867,45042,18981,30986,18446,44853,17657,14622,18900,45561,6782,44669,44739,17835,45180,44764,44875,43800,18301,24412,18794,44765,17839,44762,18279,16885,17114,17237,44856,44767,17278,44866,18650,9341,17848,8753,30135)
Unknown column 'np.person' in 'where clause'