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,44766,28313,45051,4686,45421,6609,44745,44640,13425,44868,45229,45517,18172,45177,18648,4765,45286,17092,16885,44853,17009,30986,6862,45561,13922,44685,18688,45277,13,44854,44869,19057,31354,30963,45518,18719,18981,44863,10402,24411,45180,37267,43800,44849,17601,17835,36472,6875,30135,44768,18894,8753,17556,18572,17237,17771,14622,45516,44764,18427,17904,45346,44767,5259,22509,44848,5388,44765,44861)
Unknown column 'np.person' in 'where clause'