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 (17335,17981,18794,18446,17601,44835,18042,17755,6862,45180,45042,31354,24438,18301,5259,44869,18900,44855,44739,16885,24412,44870,36472,43800,13,4765,17092,44768,44851,17771,13922,45262,44858,24441,44766,32454,3883,44849,17904,44894,44861,17114,19057,6875,44863,45051,45229,17009,17835,18430,24411,44873,30986,18353,45072,44762,28313,44687,14402,44671,44867,45518,9341,44745,44866,18652,44775,44689,44878,44884)
Unknown column 'np.person' in 'where clause'