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 (17601,17756,44845,39676,31354,18572,44768,45346,44884,24438,8753,37057,5259,18279,44853,30135,45262,43800,45518,17114,45277,44858,44739,18650,3,44894,44865,44835,17835,44745,44855,17848,4765,17492,30986,18648,13,17527,17009,18430,28313,4686,44868,18794,44856,22509,45043,44869,17278,18172,18042,18353,3883,44685,37267,18237,44640,5410,44687,45051,44531,17237,17981,17771,17657,24412,44767,13922,44854,44671)
Unknown column 'np.person' in 'where clause'