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 (44851,17756,45421,18042,43800,45229,19057,44875,31354,44836,17009,44869,14622,18237,28530,44765,18353,45042,17527,44669,44878,44775,44848,18650,18794,18572,44861,44873,44845,44685,44739,4686,44531,24438,30135,17601,44835,18430,16885,18688,24412,44866,44867,45051,18900,17755,44764,17556,44858,18301,13,17492,44671,18648,44884,36472,24441,18652,18172,17335,16935,18981,30963,44767,45517,45518,17839,45567,44837,44766)
Unknown column 'np.person' in 'where clause'