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 (24438,30135,17904,45421,17114,17278,44858,18172,17335,18652,44766,44878,44848,18894,17601,5388,10402,17657,45561,28313,44531,44767,5993,44689,44745,9341,45177,18981,18185,45072,45518,37057,44775,45051,18900,17756,44865,18237,44868,24412,44674,18648,6875,44856,28530,5259,24441,18286,45042,45517,17981,44875,16935,18353,4765,44870,17848,18572,17771,44640,18996,6862,44835,44739,45515,45262,18650,44845,44849,30986)
Unknown column 'np.person' in 'where clause'