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 (18237,45561,44849,45515,44674,3883,45517,44768,18279,28313,5388,13425,4765,16935,45180,44640,44853,44869,44762,17703,18172,17492,10402,45346,8753,19078,44865,6782,17981,17601,44875,18719,18688,17756,44873,9341,44531,44878,44685,4686,44845,18427,18301,30135,17114,44689,44858,44669,45286,17839,18648,44868,17904,17755,18446,45177,17335,44894,44848,14402,44671,14622,44764,13,17092,45043,45277,18894,44837,17556)
Unknown column 'np.person' in 'where clause'