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 (18648,30135,18794,17756,16885,44687,44766,45051,44762,44671,14402,44640,45072,44711,44848,44685,30986,28530,37267,45262,17492,9341,18894,44739,17114,17351,45561,44837,45177,6782,17556,17009,44858,17601,18042,36472,18430,45516,17092,45229,17755,34194,3,18719,17848,17835,8753,17839,17335,44768,18172,18996,30963,31354,17278,14622,5259,44835,19057,18237,17981,28313,4765,44870,5993,44865,44884,45518,18446,43800)
Unknown column 'np.person' in 'where clause'