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 (44711,45262,17755,45567,44868,44861,44845,45516,24411,3,18042,17839,45043,44775,17904,44873,17114,44835,44848,34194,18996,17556,44764,18572,14402,39676,18446,44837,30986,17771,18688,22509,43800,45051,45286,17527,4765,17756,17848,3883,44851,16935,18172,24441,17981,44853,19078,17835,17278,44875,18430,45177,45346,6875,18794,44766,4686,5259,44531,45421,45561,44767,17009,18301,5410,30963,17703,32454,44878,6782)
Unknown column 'np.person' in 'where clause'