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 (45515,17556,17835,14402,17237,17601,28313,18301,44875,44685,45567,18279,9341,30963,30986,45561,24411,5993,18286,45051,17009,45180,45518,44869,18688,18719,10402,44878,34194,13922,17839,44866,17703,44689,18042,18650,44835,44669,17335,17492,44765,30135,5388,18446,18996,18572,18430,44836,18981,17278,18648,3,17527,28530,44767,17755,44851,18900,17092,6862,44775,6875,17351,44849,6782,18237,44762,45043,44861,6609)
Unknown column 'np.person' in 'where clause'