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 (18237,28530,18042,44848,45051,6609,45286,18446,44762,44767,17278,13425,44764,34194,18688,18353,45229,17703,39676,37267,17981,44836,18652,18427,3,44858,44765,44768,45561,44745,13988,17601,37057,30986,44685,24438,18301,17848,18900,45516,17771,44837,18996,43800,17527,4765,5388,45518,45072,17835,24411,36472,44849,45567,13,44861,44855,16935,44711,45177,32454,44866,5410,18894,18430,18981,44835,3883,6782,10402)
Unknown column 'np.person' in 'where clause'