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 (30135,45518,18650,44884,44851,17771,18794,18042,19078,5388,44848,37267,6609,24441,17839,18430,44869,17981,18652,18237,44669,44689,45561,44531,3,4686,45286,44765,44711,18301,18427,44835,44836,44865,45180,4765,45516,44854,44861,17848,44849,44687,45262,45346,17657,44762,17278,44868,30963,5993,14402,37057,45042,44745,17351,17556,44739,44873,18572,36472,44870,45517,13988,3883,44856,18279,17527,28313,17755,6875)
Unknown column 'np.person' in 'where clause'