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 (43800,44739,17755,45043,18719,44674,18652,24441,44845,17278,44836,45177,45515,4765,44851,17492,44870,18650,17527,18427,44765,5259,44854,30963,44531,44856,17092,14622,45518,17835,44689,44867,44873,44861,18185,6609,18900,5410,17771,44745,44687,45561,45516,18688,44762,44835,17703,44853,32454,18286,6782,44848,17237,44671,18996,44764,18237,28530,45042,18042,18648,3,18279,19078,13922,4686,44863,45421,17556,5388)
Unknown column 'np.person' in 'where clause'