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 (44766,14622,45051,44685,44854,18427,14402,18894,17335,44865,44863,44671,45515,45229,6609,6862,34194,17527,9341,4765,18650,44861,44837,17703,45516,44884,44848,13,44894,17771,18237,18900,44745,18172,24441,44674,18572,44851,45043,18279,45567,18794,45042,17114,24438,17556,43800,32454,44531,28530,45518,44858,6782,18688,5388,36472,18981,4686,18301,22509,17237,17601,44866,44849,17278,18719,45286,44873,17351,18430)
Unknown column 'np.person' in 'where clause'