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 (44861,44853,30963,17237,6609,18572,37057,18279,45177,18430,44687,17756,13988,44865,18719,44765,37267,22509,19057,44837,17492,44775,17771,18650,44856,44854,45516,39676,13,18172,44894,24438,34194,44845,4686,18794,16935,44869,9341,18301,6875,17839,5388,17335,17835,44878,44848,18900,44849,45518,13425,44870,44764,17114,44711,32454,5259,45043,18648,17657,44766,17981,30135,24412,30986,18981,44745,17556,3,44640)
Unknown column 'np.person' in 'where clause'