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 (17556,37267,44867,44869,44863,44766,24411,44835,24441,18237,18981,45051,17771,44851,45561,44745,36472,18794,44878,5410,44669,17839,3883,18650,10402,45180,17092,44870,39676,44685,45516,4686,45517,18719,17601,17756,44861,44689,3,18894,44762,44873,44848,17848,45229,18688,18652,18900,30963,44865,9341,44775,45515,13,19057,45262,17278,44856,17904,6609,44836,44640,44855,43800,44866,18996,18286,30135,17492,44674)
Unknown column 'np.person' in 'where clause'