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,44884,18237,13988,17771,44739,13922,17278,19078,18446,30135,45042,44711,18650,45177,44873,44689,5388,44867,17335,18172,24441,17092,6862,44765,16935,44671,8753,45421,45516,44531,45346,17756,24438,45518,17351,44866,17556,18794,16885,32454,44845,44764,44869,17009,18719,13,44855,18996,45515,44894,17839,45517,45072,5410,18286,44674,6875,44854,19057,10402,18652,6609,3883,39676,17527,34194,9341,28313,18894)
Unknown column 'np.person' in 'where clause'