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 (44669,18652,44894,17278,24412,36472,24411,14622,45286,44764,32454,14402,44531,43800,44674,31354,44845,37267,44853,17237,17835,3883,18794,44858,16885,44762,28530,5259,17771,17657,18185,45517,18353,37057,18688,45346,18894,45515,45277,44848,44856,44711,44837,18279,28313,44775,45567,44867,45229,9341,44768,24438,4686,17703,44855,44766,6862,39676,44884,18237,18648,34194,44689,6875,17756,44745,17981,10402,17839,17556)
Unknown column 'np.person' in 'where clause'