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 (45072,9341,18648,18446,34194,18286,13922,45561,10402,44848,43800,17556,45043,18279,19057,44837,44867,44671,44858,45042,44870,44863,44856,44851,44689,44762,45229,5410,44869,30963,5259,45051,44745,14622,45277,18894,31354,28530,44674,6862,45180,8753,17848,17351,44764,44873,17981,13425,4686,16935,44884,30986,18688,14402,6609,44854,44866,22509,44687,44768,45286,3,18650,44669,44853,18042,45421,44875,17092,17703)
Unknown column 'np.person' in 'where clause'