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 (24411,18648,45515,44861,17601,44867,44767,30135,44765,4765,44863,44894,45180,44855,44685,17703,44851,18900,44669,17771,14622,19078,18427,5388,13922,18301,44739,18172,44671,18981,44689,44878,44865,18185,44745,6782,3,44870,45043,45262,45346,36472,44854,18237,44531,44873,16935,17492,18794,45567,17527,44764,44766,44837,18650,39676,45561,45072,16885,24441,5259,18652,37057,44856,28530,44775,13,18286,17755,45177)
Unknown column 'np.person' in 'where clause'