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 (17771,17904,18279,44674,32454,44848,44875,44767,44861,44869,6862,45515,36472,17756,18794,5259,44878,44853,30963,18286,44640,17237,44873,44764,24411,45561,9341,44854,18900,18650,45042,37267,19078,17755,44687,18353,44858,18572,13922,45180,45262,44765,45518,18719,24438,17114,30986,44745,18652,44845,14622,18446,17009,44835,24412,44870,44856,45516,18981,17601,18237,44739,37057,5410,16935,44775,45286,28530,44768,39676)
Unknown column 'np.person' in 'where clause'