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 (44858,6875,18353,17848,30986,44775,13,17335,45561,9341,45043,45072,4686,18996,6862,34194,44867,17703,18900,44687,10402,45286,44685,24438,17755,4765,18652,14402,13988,44849,44878,17601,17771,44689,18648,44875,44865,44856,16935,44835,6609,44855,18237,17981,18688,17492,16885,5410,18430,45051,30963,6782,45567,24441,45518,44869,44851,17527,44863,28313,18301,44873,13922,31354,44767,17009,3,44845,44765,18794)
Unknown column 'np.person' in 'where clause'