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 (17756,44766,44674,22509,45515,5388,44853,45567,45042,44869,6875,18185,5259,37057,44531,45346,17703,45516,24441,44689,3883,44894,18042,3,44851,9341,44762,17556,44866,44837,45180,17492,19057,13425,6862,5410,17771,44865,45072,6782,44768,17009,17848,44858,14402,44849,14622,34194,44739,13988,43800,30135,44767,44775,18648,17278,19078,44711,30963,44884,17092,16885,31354,18172,17335,18286,44868,44745,17527,37267)
Unknown column 'np.person' in 'where clause'