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 (18042,34194,45180,17835,17527,44640,18894,14402,17601,45515,6782,44687,36472,31354,17335,17755,19078,24441,5388,44685,44837,44851,39676,17703,18237,44867,44531,17848,18427,44745,30986,44853,18650,44711,45043,3883,43800,44865,17771,24411,44869,17556,6875,18430,44878,18172,44762,30135,44856,17756,5259,17092,24438,45177,45042,45072,44863,45517,44775,44875,16935,44835,45277,3,8753,45518,17839,18719,44884,18794)
Unknown column 'np.person' in 'where clause'