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 (18794,18650,22509,45072,36472,45421,18688,44848,18237,44837,45262,45567,5993,44739,18430,13425,44854,37267,16935,24441,44765,17981,44861,44762,3,44849,44858,18042,44873,39676,17703,10402,44856,18652,17848,44878,43800,17839,44745,45042,45277,17755,17351,18996,17009,45043,18353,44884,17601,17771,24411,44764,13,44865,44863,24412,18427,45518,44768,17527,3883,44866,44835,44836,44531,5410,8753,24438,44689,45051)
Unknown column 'np.person' in 'where clause'