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 (17848,44875,18794,44853,31354,6609,44767,17527,18719,44849,18185,17835,18430,24441,45072,9341,19078,44711,44836,17092,13,28313,3883,45051,44884,17009,17335,17839,24438,6782,44854,44858,44866,19057,44766,16885,17278,45177,18900,5388,44870,44775,44739,44868,18279,17771,44685,18996,44856,44851,17981,18894,3,45180,30135,5410,24411,18652,44687,16935,22509,44745,44835,45286,18446,30963,6862,17755,18301,44865)
Unknown column 'np.person' in 'where clause'