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 (44766,17527,18894,17657,44845,17755,44854,18572,44870,44640,44848,18981,44745,44869,24438,5259,45515,44856,44685,17278,37057,30986,18648,17601,6782,43800,5410,14402,19057,3,44687,17335,44861,17703,30135,44689,18446,5388,18652,44765,45177,44767,44739,24411,31354,17556,44762,44851,44867,44768,30963,14622,18185,18172,17839,45286,9341,44775,45277,44878,45072,45051,4686,45421,16935,6875,13988,19078,45346,18301)
Unknown column 'np.person' in 'where clause'