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 (4765,17981,32454,44835,44869,44837,17657,6862,13922,24438,44739,45042,44867,18894,19057,24441,44865,16885,30135,18301,18900,45561,45515,18688,37267,44687,44866,44878,5993,45421,6875,44875,18981,44884,17092,44848,45229,18430,45518,18353,44863,17835,14402,18572,17114,44640,44689,17771,9341,18648,13425,10402,44845,13,44685,45346,44854,28313,18172,4686,45262,34194,30986,45180,44856,44873,45072,14622,6609,17755)
Unknown column 'np.person' in 'where clause'