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 (45177,17527,5993,44894,17335,17492,32454,45346,45262,44858,44868,44884,5259,44669,44875,18719,44762,18894,45561,6782,18301,44768,45516,17703,44863,24411,18427,14402,18286,44764,18430,44870,17657,13425,44835,13,45515,17755,36472,28530,44674,3,13922,3883,17848,45042,16885,44867,44849,24412,17278,44671,9341,17981,17835,4686,17839,16935,18185,44837,44739,17556,18353,37057,44869,4765,34194,43800,44687,18572)
Unknown column 'np.person' in 'where clause'