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 (45072,44845,5388,17771,37057,3883,14622,44765,45346,30986,44878,19078,45051,18688,18572,44775,24412,45229,44858,17981,6782,6875,45042,44739,9341,44861,45277,44674,6609,45518,44849,13988,4765,44764,17556,45262,17835,44848,44853,28530,17492,18185,3,44875,18301,45515,13,44766,39676,17114,17527,45421,44851,43800,18900,24411,44855,44685,17009,18650,10402,18996,4686,44836,44669,44531,18794,44869,5993,6862)
Unknown column 'np.person' in 'where clause'