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 (17848,36472,44870,17556,18894,18688,44765,45177,17492,44837,37057,18286,44866,16935,18650,44865,45277,5388,44669,44671,44689,44851,39676,44745,44531,44853,17703,44856,18427,18279,28313,6875,17601,17839,24441,17981,44863,44764,17278,44775,18996,44766,9341,13,17009,17755,44867,13425,19078,5259,14402,18981,18900,17092,44835,6862,45043,32454,18172,45517,3,17657,44854,18185,17904,44762,13988,17351,18652,44836)
Unknown column 'np.person' in 'where clause'