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 (44845,36472,44851,44849,45518,16885,17981,17278,45561,24438,18572,17092,44775,45516,44767,44687,44894,44869,24441,45043,17335,44836,6609,44853,45567,14622,45286,45042,44685,30986,3883,18650,17904,37267,44875,31354,45517,44863,18719,44689,18652,24411,44837,19057,17601,44739,18237,30135,17556,37057,17848,16935,18185,4686,4765,44835,13,44745,18279,18172,19078,44671,18981,13425,18648,18430,32454,44878,17657,17839)
Unknown column 'np.person' in 'where clause'