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 (44531,14622,44711,17527,16935,14402,45229,44849,18185,4765,45286,30986,17981,17278,44685,44671,44835,13922,45561,45262,44745,6875,18719,45421,13,45518,44762,44775,30963,3883,13988,45051,44866,17755,44863,18172,44858,44669,18427,18430,17009,37057,45346,44640,17335,44848,36472,44878,44739,5410,45277,45177,18572,18353,17835,44854,8753,32454,18688,34194,44855,28313,18650,44836,44766,18652,44867,28530,17703,45042)
Unknown column 'np.person' in 'where clause'