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 (18172,17278,30963,44689,18430,3,44669,44711,44848,44878,45561,17848,44835,17904,44894,10402,18286,17601,5259,17771,14402,17556,44687,37057,24441,18427,45051,18894,17835,44853,44858,6862,17755,44768,8753,5388,6875,44884,17981,28530,18648,44867,45180,28313,44861,16935,13988,45567,19078,45346,44863,18794,13,44671,18042,6609,17657,45516,18688,13425,18652,22509,18996,44836,4765,44854,6782,44775,45517,17335)
Unknown column 'np.person' in 'where clause'