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 (17657,44873,17981,18353,39676,24441,44685,45561,14402,17009,6782,44671,17848,3883,18650,18648,17556,3,10402,18900,44640,37267,18446,5388,45072,18279,45286,5410,14622,28313,44674,32454,17278,18286,44767,44865,18981,17839,45518,18042,16885,44858,17703,45277,44878,44764,17904,36472,19078,24411,45051,44870,44894,45180,18652,13425,45042,44863,24412,44884,45517,45229,13988,45177,44687,4686,44861,6862,18172,37057)
Unknown column 'np.person' in 'where clause'