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 (4686,44873,18648,24438,45515,45262,17278,16885,3,14402,17492,18279,16935,44856,44766,13425,44745,24411,44853,30963,30135,17839,24441,45516,18719,45042,24412,44835,18172,44669,44861,3883,5410,19057,44765,6782,44865,18894,13988,44836,45346,44848,17755,17237,17703,5993,44837,14622,37267,17981,44764,45518,18996,17657,18430,45072,17114,44854,44671,44884,44674,17771,22509,17351,28313,44855,44866,13922,43800,37057)
Unknown column 'np.person' in 'where clause'