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 (44851,18185,22509,28530,17703,44765,17351,17755,45567,44845,37057,18237,36472,37267,4686,17556,34194,18900,30135,17657,44849,16935,18719,44764,17839,44531,30963,17009,44884,44861,17601,44835,6875,44878,6782,45042,17771,5388,44875,17756,18572,45043,45277,32454,44854,18981,44768,24412,3883,44640,14402,5259,10402,45180,44711,18446,44685,17278,44867,6862,44866,18652,45346,17848,24411,44836,45517,45229,45177,44863)
Unknown column 'np.person' in 'where clause'