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 (44856,45051,18427,45042,44531,18172,17771,18286,14622,13,28530,24438,13988,45180,45561,44745,43800,44863,6609,45346,45072,44640,45515,44878,17237,37057,17351,44835,24412,18719,24411,44766,18650,44775,44674,17278,18894,18652,18900,39676,17981,18279,28313,44764,14402,10402,30135,45043,17114,44851,45421,17835,45262,5259,44845,17657,44866,44858,45517,31354,17092,44884,44868,17492,18996,44669,24441,5410,45567,44869)
Unknown column 'np.person' in 'where clause'