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 (44858,18981,18446,44884,17703,16885,44851,18652,32454,17092,18719,44875,18650,4686,45051,45517,44671,28313,24412,17839,18900,44674,17848,17237,18237,10402,43800,17755,16935,44873,3883,13922,6862,45177,19078,45561,44531,5993,45277,44848,45515,18688,44836,44766,28530,44835,18794,36472,18648,5259,18301,45346,44745,44878,44837,30135,18894,44854,5410,44762,18172,44869,34194,44866,18185,44775,18286,44669,30986,44739)
Unknown column 'np.person' in 'where clause'