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 (44854,18042,6609,44866,17092,6782,18237,44894,44867,44858,44745,44674,45421,44855,18648,6875,18650,28530,34194,16885,14622,17114,18427,44873,18172,44848,24412,44762,18301,28313,18900,5993,17351,44685,3883,44865,45517,30986,18446,44689,45515,44869,17755,45286,22509,44687,44853,44868,6862,39676,19057,4686,37267,17756,14402,5388,44765,44836,44856,18719,18185,36472,18894,19078,31354,18688,45180,44531,18652,18430)
Unknown column 'np.person' in 'where clause'