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 (44775,18996,44851,17278,45277,18353,44873,10402,45043,19078,14402,6862,5410,17556,18237,3883,45346,44855,17904,24438,44854,45042,45180,17771,34194,18652,24411,18894,17839,45286,18719,16935,4686,44674,17981,18688,17601,45561,4765,17527,44894,44866,30986,43800,44767,44764,44875,44711,18042,45177,45072,44845,44869,44765,6782,30135,44689,45229,44762,44836,31354,45421,17657,32454,44858,24412,22509,44856,18172,45515)
Unknown column 'np.person' in 'where clause'