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 (5410,44669,24441,44867,30986,18688,45277,44853,18286,44836,13988,18894,45561,30135,45051,17335,44531,45072,44861,17351,14402,18301,18652,44878,44768,18427,18353,44711,44849,18794,6862,13425,44689,44845,45516,17848,19078,17556,18648,18042,16885,37057,43800,17981,32454,44739,17657,17237,44858,17009,45262,18719,4765,44894,18446,17092,44851,13,18996,39676,16935,3,18185,8753,45229,19057,44685,18172,44835,17771)
Unknown column 'np.person' in 'where clause'