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 (14622,6862,44739,16935,45277,44851,45229,3883,44870,18900,4765,17278,9341,28530,44674,18652,44858,22509,44854,18794,37057,44873,17114,45051,45043,24411,44775,45346,44861,37267,18981,44766,44845,43800,44745,17492,13,44669,44878,44765,18894,44853,44849,17981,17092,14402,44685,32454,18648,45517,44531,44837,45042,6875,24441,17237,13425,44764,18688,17556,44866,30135,44848,44867,36472,44671,18286,45515,16885,18301)
Unknown column 'np.person' in 'where clause'