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 (44870,44848,17904,44873,44861,45072,44764,44669,45567,17703,44869,44674,45180,44855,14622,45286,18172,44878,18042,45177,18794,44845,28530,17657,18900,39676,44711,18981,6782,44837,18301,18185,17601,44865,44685,45051,19078,44775,44768,17114,17009,17981,24411,28313,44531,43800,44745,45421,6609,24438,30135,17835,44835,18353,44762,45043,17351,17527,44875,17755,44863,4765,13,5388,5993,44858,18688,18719,44884,18427)
Unknown column 'np.person' in 'where clause'