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 (45421,18430,18286,44868,5410,18648,18301,18279,44775,44851,45229,44669,17839,16935,22509,44849,24412,18237,17351,39676,6609,44531,24441,44768,6862,44766,44866,17527,28530,44870,13,45346,44873,24438,37057,44854,19057,31354,4765,18794,45262,45286,37267,44861,17114,44674,18719,17771,45277,44687,44884,18894,10402,44765,13425,45515,3,9341,19078,45177,17492,44875,13988,32454,44836,45042,5259,17848,18996,17904)
Unknown column 'np.person' in 'where clause'