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 (44884,44865,13922,9341,44674,44853,45515,18279,44766,5388,32454,45051,18981,44863,37267,18719,13988,44855,18430,17601,44869,31354,45229,44745,18648,17835,45042,18185,44689,45346,18237,45517,44669,18172,6609,17009,44854,43800,44848,18794,17492,18894,44835,36472,44531,45286,18446,18427,44685,17904,45516,17703,3883,44851,4686,44866,17771,17278,13,18572,16935,37057,45262,5410,44894,44868,44764,16885,44762,45177)
Unknown column 'np.person' in 'where clause'