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 (44685,44845,44861,24441,18900,45517,18996,17237,44837,44870,16885,17351,44873,17556,13988,18648,37057,34194,13,13425,44766,44851,17755,17703,18719,3883,44739,45518,44640,18688,44775,32454,36472,17092,45051,45567,45262,44835,44855,18652,45043,14402,44868,28530,17904,44866,17527,17114,45346,44875,18446,45277,17278,3,39676,18172,45072,18301,17601,19057,44865,10402,17839,44671,17848,44687,31354,18894,45516,8753)
Unknown column 'np.person' in 'where clause'