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 (6782,44845,13922,45567,44745,14402,44853,4765,43800,13988,44837,18650,44870,44766,10402,44878,18794,16935,18900,18688,17835,17771,44868,30963,45180,32454,44836,18652,44711,45177,17237,44674,45262,5410,31354,45043,14622,17556,39676,45515,17839,28530,44875,17848,3,18719,5388,45229,44863,44765,45286,44865,18237,17351,17492,44867,44775,45346,44851,5993,4686,17981,44531,9341,44861,44687,45561,18172,44894,19078)
Unknown column 'np.person' in 'where clause'