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 (45518,18237,17981,6875,18301,3883,6609,44689,44687,16885,18900,17835,13922,17839,17771,44671,30963,9341,18572,17904,17848,44775,44836,32454,44867,45262,13425,22509,18286,4686,17556,44851,18650,24441,18981,44884,18652,44685,37057,3,44875,8753,17351,44739,34194,18719,17756,44858,30986,44640,13,18185,17278,44856,19078,44845,45072,24412,14622,17092,36472,44764,44865,44745,44765,44835,45042,43800,31354,17335)
Unknown column 'np.person' in 'where clause'