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 (44766,18900,19078,30986,44873,44767,44866,18446,45042,18894,9341,45072,28530,37267,13988,30135,18572,5410,5388,17278,44765,24438,18301,18719,18172,3883,44775,18185,45180,17556,44764,44855,17904,45262,18650,45421,17351,22509,14402,18648,44863,24412,18353,44869,44867,19057,16935,17756,45051,17009,36472,45286,44669,13425,44845,24441,18237,4765,18688,45277,5259,18279,44884,17835,30963,6782,44858,44685,44674,44894)
Unknown column 'np.person' in 'where clause'