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 (5259,44674,32454,37057,44687,19057,44685,18430,28530,17237,45051,44853,44766,44835,45421,45262,18650,18894,45567,16935,18572,18172,44854,45229,17092,22509,17009,10402,18286,17771,17114,17755,44739,45180,17278,44849,18900,44867,44848,17848,44745,18427,18237,45517,5410,44869,45561,44764,36472,44863,44878,4765,17703,44775,18652,13425,17756,18648,18446,28313,18719,6862,24438,17839,9341,44765,31354,18794,45286,44767)
Unknown column 'np.person' in 'where clause'