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 (44669,17839,17755,45180,18648,44851,17278,44873,44868,18279,18652,6609,45567,45346,44863,44689,18185,30986,45277,44867,18996,44865,37057,18794,44870,44858,45516,18981,18172,45517,44835,44745,45262,18900,18688,24411,5410,13922,44845,45286,44765,13425,3,18894,5993,24438,44640,17092,18650,43800,17556,4765,44853,44767,44687,18286,44766,17981,44855,18719,44878,44531,18446,44711,17114,36472,18042,45518,4686,17492)
Unknown column 'np.person' in 'where clause'