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 (17835,44711,44848,45043,34194,44894,45177,45518,44671,44861,45346,17657,5993,18648,44875,45042,6782,3883,18279,44873,44687,24438,4686,44775,17756,14402,18688,17335,18652,6862,18572,45561,24411,37057,45051,44764,44865,44855,18237,31354,18042,39676,6609,45567,45277,18719,16935,18650,44866,43800,13425,17009,44836,45515,17114,24441,44767,18794,44531,45262,44685,28530,18353,18894,18286,44858,13922,44745,22509,8753)
Unknown column 'np.person' in 'where clause'