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 (17904,39676,6875,44764,44854,44849,30135,44689,44674,34194,24412,44768,18996,24441,44671,13,36472,18981,17835,18650,14622,16935,18185,44863,3,18719,44848,18446,14402,17771,44775,45515,17755,44739,44711,44835,17657,44767,13425,44869,45421,17601,18572,17756,30986,5410,44868,44894,18237,44853,44836,18301,44870,44858,44856,44875,44855,31354,45518,45346,5259,28313,17009,24411,44745,45567,37267,18286,5993,6862)
Unknown column 'np.person' in 'where clause'