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 (44855,14402,18042,17835,3,4765,18794,19057,22509,18981,18648,30135,18894,45177,45277,44848,44854,24412,44640,18446,44669,17092,45072,17492,44745,18719,17556,8753,18650,31354,17237,18301,44674,17981,5388,44878,4686,17601,28313,37057,18996,44711,44836,44867,9341,18286,18900,6609,14622,18430,44845,13425,44531,18652,18237,44875,44856,16935,18688,17771,44835,44765,45517,44868,44837,44869,45567,5410,44775,16885)
Unknown column 'np.person' in 'where clause'