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 (30986,18894,44768,34194,44689,19057,44764,18279,17839,22509,18572,17601,45346,17092,44837,24438,18042,44711,24411,44855,17771,44865,45277,44849,44861,44531,18900,17009,17278,18652,24412,44856,5410,45177,45043,44853,30963,16885,28313,44687,17848,44640,44775,17756,17755,3,32454,44878,17351,18237,45072,44765,10402,18301,17114,18353,17657,14622,44873,44894,18430,45042,17835,6609,44685,17904,18996,44835,18446,44745)
Unknown column 'np.person' in 'where clause'