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 (16935,32454,14622,17848,31354,44875,17351,44873,44767,44689,5993,17527,45043,44855,45180,45421,18900,24441,44868,45346,18572,45518,10402,44739,17092,30986,8753,18237,44854,44762,17601,18894,17657,13988,28530,44775,45286,30135,18172,6782,44849,44531,39676,17703,44674,44768,44848,44853,44870,18650,44685,45229,45561,44765,6609,6875,36472,5410,45051,24438,44764,18042,4686,17904,18648,5259,17492,18688,18301,18279)
Unknown column 'np.person' in 'where clause'