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 (34194,45516,44855,3,44861,17492,44836,30963,44868,44689,14402,45515,44685,18301,44845,13922,44640,17771,43800,19078,44711,44869,44671,18652,8753,9341,18427,17335,44739,44856,45072,44837,45286,44775,17527,5410,5388,44766,18996,45043,18572,24438,17009,44873,6875,44858,14622,16935,17703,17556,44531,45042,45517,44867,18430,13988,44848,5259,17981,24441,18446,45346,44764,30986,37267,44745,17904,18353,18279,44762)
Unknown column 'np.person' in 'where clause'