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,44531,44865,44866,44762,17009,30135,44858,18427,5259,17848,44870,17839,18237,45421,17492,45177,44739,44745,13425,18794,18301,44671,32454,45515,45180,44845,45561,14402,24441,44849,44764,44884,44837,44674,44868,44854,44853,34194,45516,18286,36472,45229,45346,43800,17703,17657,17755,14622,44856,17092,18185,28313,18719,44855,13922,44767,16935,6862,44878,19078,30986,18981,31354,17114,44766,30963,44875,4686,18353)
Unknown column 'np.person' in 'where clause'