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 (16885,44884,45286,9341,4686,18279,17771,44687,44869,18650,45567,5388,18237,44851,18301,18572,30135,14402,44674,44861,28313,44870,18353,44836,44845,17756,44894,44856,18900,45042,44853,5993,18688,45043,45518,17839,44835,45262,45180,24411,44745,6609,43800,39676,5410,32454,18648,19057,18427,44837,17527,18042,5259,17114,30963,36472,18185,8753,44866,44531,44867,13988,17335,44768,44865,17092,45516,28530,44689,24441)
Unknown column 'np.person' in 'where clause'