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 (17755,4686,13922,44767,45286,4765,18427,16935,44870,18981,44711,30135,44863,45346,44765,24412,44854,18572,16885,18650,30963,18353,17092,45177,44849,44835,44768,45072,17335,44878,22509,18652,44764,44848,13425,3883,44853,17771,17657,37057,17278,44845,18648,44669,44689,19057,32454,6862,44851,44640,5993,14622,44867,17839,30986,44868,44671,45561,44875,24438,17009,9341,18900,17904,44858,17756,44865,13,18279,37267)
Unknown column 'np.person' in 'where clause'