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 (13425,44856,18279,24411,6609,18894,14402,44861,45262,14622,44762,36472,17755,44674,37267,44739,44775,19078,16935,18185,18572,44848,28530,44745,32454,44884,18900,17278,18996,17492,44764,45043,5410,3,18237,45229,45567,44858,30986,37057,44689,17556,44855,22509,18650,45051,17092,5993,45180,44640,45072,4686,44669,30135,44868,6875,17601,44866,18427,45518,3883,44878,44870,44875,17009,44835,24441,18172,31354,44851)
Unknown column 'np.person' in 'where clause'