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 (17114,17839,24411,45346,45561,44836,13,44766,45516,44687,44711,44739,9341,18719,44875,44856,30963,5259,43800,18900,18981,45229,44775,18446,28530,18894,44868,5388,17756,34194,44835,37057,44894,44878,17904,45177,5993,16885,18279,17335,6609,45051,45518,24438,17771,44863,44671,44861,44764,30986,18996,5410,45517,17835,18353,17657,45286,32454,45262,3883,45421,17755,45515,18301,44867,17492,17848,44853,44873,44745)
Unknown column 'np.person' in 'where clause'