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 (45515,18794,18430,45277,44739,17657,44764,18427,18301,18719,6609,30963,44766,17839,44689,44762,44669,34194,44851,45561,17601,18237,17755,17835,45518,18894,44856,44866,39676,44853,19078,44674,45567,45180,45286,5993,44848,17092,8753,18353,17556,30986,17527,13,17335,24438,45346,44531,31354,24441,6782,13425,44671,45229,44894,44873,44878,28530,6875,44836,18900,18286,44884,44868,44863,30135,19057,16935,17848,32454)
Unknown column 'np.person' in 'where clause'