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 (32454,18353,17904,44848,5259,16935,37057,45346,44685,44894,17835,17009,18572,37267,13,18279,44869,17114,30963,18650,17839,18900,44767,44765,44687,9341,44674,44870,44764,17771,18719,44766,17527,18996,45277,44863,44711,6782,45567,18648,45051,8753,17601,45180,6862,45042,45561,45515,17492,44853,44851,30986,44865,18042,18286,39676,44856,44867,19057,17556,44878,18237,17756,44849,44689,16885,30135,44836,43800,45286)
Unknown column 'np.person' in 'where clause'