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 (44765,18279,17009,44873,18042,44531,43800,16935,17556,24441,17601,44861,22509,17835,18430,17335,18719,45262,18894,19078,18996,17092,18648,18652,44671,44868,18572,24438,45051,45517,18353,5388,32454,18688,18185,28313,18446,45277,44851,44640,24412,44894,19057,18794,18981,45177,24411,17756,30135,44848,4765,44745,44685,44775,44836,17351,44854,44762,44766,45072,44856,6875,18900,6609,18650,37057,17114,44674,44878,31354)
Unknown column 'np.person' in 'where clause'