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 (18301,45042,9341,44851,37267,18427,44531,18650,44835,18794,17835,6875,6862,17335,44640,17756,19057,13988,18894,45177,44866,44767,45286,44689,17114,30135,22509,18572,44865,36472,18279,13922,44711,18185,17351,45051,44669,45567,18719,18900,45262,16885,6782,44848,24438,44878,44856,17601,28313,44894,45518,44861,13,44671,17848,30963,31354,28530,17527,14622,44739,17092,39676,44884,44775,30986,45180,17839,19078,44745)
Unknown column 'np.person' in 'where clause'