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 (5388,17657,17009,44863,28313,6875,44854,45229,17335,18427,18353,18286,18900,31354,18042,24438,44765,18688,44856,5993,5410,9341,3,44685,45042,44674,17771,45346,17755,45516,44855,17351,18652,18648,44873,45277,18279,18446,44689,44865,44868,45421,4765,34194,18572,44845,45177,36472,13425,37057,18719,44764,13,18430,16885,28530,17981,17556,45518,44866,44745,44711,24441,17756,44851,5259,44836,44835,45072,44768)
Unknown column 'np.person' in 'where clause'