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 (17237,24411,44745,16935,4765,44875,44739,37057,44845,44837,45072,45421,44775,17904,5410,44531,45177,45518,45346,16885,18430,44768,44766,18900,18185,44873,28313,45561,5388,3,45517,17114,34194,44856,44858,18572,45516,18446,14622,17556,44674,44861,44671,18042,18894,13,17755,17492,24441,17009,18427,44851,6875,45286,17335,17527,44884,45229,18353,39676,17756,44870,6782,45515,18301,44689,44835,44640,45051,45262)
Unknown column 'np.person' in 'where clause'