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 (18894,18650,44854,18446,44849,17092,17771,16885,18572,45346,45072,6782,17351,18430,13,45042,36472,18900,44768,18172,44863,18301,6609,17835,13988,24412,45516,17601,30135,44858,17278,45567,18981,24411,3,44856,44867,44884,19078,45229,45262,18794,5259,44762,17237,39676,19057,17335,44674,17904,24438,44671,44873,44875,44687,28313,3883,13922,10402,17756,45286,44835,6875,45515,18286,24441,44745,9341,18648,14622)
Unknown column 'np.person' in 'where clause'