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 (45515,3,45518,45229,24438,17092,45516,30963,17237,44711,45180,22509,5993,36472,44765,28313,44674,45567,18648,4686,44855,17835,44866,45177,37057,24412,44851,44767,18185,32454,18237,6875,6782,44861,9341,45277,19078,17527,44878,44856,44853,44836,10402,17755,18688,37267,44837,44870,13425,44640,18900,45286,13922,4765,18652,13988,45561,18894,17771,17839,44775,31354,18353,34194,45346,44867,44863,44745,44845,17351)
Unknown column 'np.person' in 'where clause'