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 (17278,18427,17771,18648,17755,4686,18894,6875,37057,3,6782,28530,44875,45277,28313,44775,18430,17601,44868,24438,19057,45567,44851,43800,39676,44856,18572,24412,45346,30135,44687,17114,44685,44768,44848,22509,45518,5993,44837,44870,44863,17848,44849,6609,17527,44836,44855,44854,24411,44873,44689,18279,17492,18900,17835,44865,30963,45180,44853,17904,45051,45421,44531,44858,18446,45561,13,18650,44669,44867)
Unknown column 'np.person' in 'where clause'