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 (24412,45043,24441,18648,17556,45051,13,44674,28530,17755,17839,19078,45262,24438,45421,44640,6875,4686,17492,18279,8753,44884,18237,3,18688,17237,18894,44767,45346,24411,34194,44866,30963,18794,44685,5993,45286,44867,45567,28313,44762,44865,18719,44845,6862,18185,17114,44768,4765,44687,18353,45042,5410,17009,44711,17904,17351,18446,45561,44689,44848,17848,13425,17756,6782,18042,18650,18301,17601,32454)
Unknown column 'np.person' in 'where clause'