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 (44640,24411,14402,44853,18900,18996,17492,30986,44848,45561,5388,32454,18430,18172,44767,44856,44854,19078,44836,17756,44884,45567,44865,44837,44674,17114,44671,10402,37057,17981,13922,18042,44689,44687,19057,17755,45421,44764,4765,44711,44858,9341,44878,44766,17556,18650,45518,18279,45346,30135,24441,18688,44775,6782,45286,44861,44849,34194,43800,17848,17335,5993,37267,44768,44855,44531,44669,45517,44863,17237)
Unknown column 'np.person' in 'where clause'