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 (17981,44866,37267,45043,3883,45180,18446,17835,44687,45346,36472,44873,24438,44845,44764,44674,45515,17351,44835,17755,24441,45277,44689,44768,30986,44848,4765,14402,18650,44863,44868,17492,44854,17092,17771,17756,44853,3,18572,44836,19078,18430,17848,44849,13988,17114,44855,22509,30963,13922,28530,44739,45561,45517,45051,44858,18794,6862,44856,13,44765,18172,44869,6875,32454,17556,18688,44767,18652,39676)
Unknown column 'np.person' in 'where clause'