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 (44685,17278,45517,44669,44868,17009,18648,45286,24438,24411,45421,18042,19078,44775,18353,44855,44739,44689,44866,36472,13988,17904,18172,31354,45515,44640,6782,44687,18185,45346,17092,44836,18430,17601,44745,9341,10402,45072,22509,44873,44853,4765,16935,45516,18237,44894,45262,17492,32454,44768,17839,18981,5410,45180,16885,13425,18652,17703,17981,45518,44845,17527,44531,44711,28530,44858,18301,13,18794,18719)
Unknown column 'np.person' in 'where clause'