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 (44689,44669,18279,44685,44863,18185,45515,18719,17904,14622,18648,5259,37057,44768,16935,5410,39676,16885,44687,17278,45286,17835,45051,44878,17527,5993,45516,17492,9341,44775,18981,17092,18650,17601,24438,44884,17657,45043,45561,13425,45518,24412,44868,17351,13,44765,44762,44867,18286,44837,37267,18900,44851,24411,17755,44869,14402,18042,44767,17114,17771,18237,18353,45346,28530,30963,10402,45072,17556,44711)
Unknown column 'np.person' in 'where clause'