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 (39676,17556,44685,24411,44689,44868,17755,17237,18427,17601,45262,44884,18981,18185,18279,18446,44894,17492,37057,19057,17703,32454,44766,45561,44835,44863,18688,17009,18172,44745,44711,44837,3,45518,45567,37267,44739,45177,44687,18794,30986,44853,18719,44775,43800,44851,10402,44762,44768,16885,44875,18353,45072,18900,13922,45516,17527,17092,17756,4765,45421,24441,44855,45051,6862,44854,44669,36472,30963,18648)
Unknown column 'np.person' in 'where clause'