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 (44768,5410,44866,17492,18172,44861,24412,17009,44856,44867,45518,45043,14402,14622,17981,32454,44835,18688,45277,18981,18794,44689,44873,19078,17904,44836,17755,17601,45517,16885,17657,17756,18900,17848,28530,44775,44868,34194,45286,13,17839,5388,17771,44685,45567,44669,18237,18301,44870,45262,17278,44865,45042,45516,6875,17703,45515,18894,44849,37057,43800,44764,17092,45072,44765,17527,6782,44767,30963,18996)
Unknown column 'np.person' in 'where clause'