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 (44854,34194,24411,45567,45051,10402,45421,44762,24441,45346,18185,44855,30963,44868,44858,44745,45286,18286,44845,24412,17756,4765,18719,45229,44870,44685,18301,44835,44851,44674,6609,14402,13425,44766,44856,17755,43800,16885,18981,18042,18446,44863,37057,44848,44764,44853,44875,44866,6782,18572,45561,44878,45518,17839,17981,44765,44767,18996,16935,28530,44837,28313,17904,45072,44861,44669,37267,18237,3,31354)
Unknown column 'np.person' in 'where clause'