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 (44851,28530,17351,18996,4765,17492,44894,44855,18688,44849,18650,44845,44878,9341,13425,45277,44884,44745,44865,30986,44768,14622,44689,19078,45180,44856,17756,6862,13,45042,44739,17771,17755,16885,17848,4686,44669,17657,24412,44867,5388,5993,17981,16935,44866,32454,44858,24441,17237,17092,30963,28313,34194,45567,37057,18794,18900,18572,45043,44711,31354,44685,18981,44762,45051,17839,14402,45286,44870,18172)
Unknown column 'np.person' in 'where clause'