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,16885,44745,44866,18652,9341,18572,45229,39676,44765,44531,44848,44863,24438,45262,19057,14402,45346,18688,44711,17848,44768,37267,3,44689,45561,44856,13988,18900,13922,36472,45042,18894,44640,17009,45567,30986,17657,44835,45051,31354,44764,45043,17904,30135,44767,6782,45180,30963,18427,45515,18794,45517,3883,44685,17839,45177,24412,44762,14622,22509,17351,17601,44855,17092,18237,34194,17556,6609,17703)
Unknown column 'np.person' in 'where clause'