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 (17835,24411,17114,44878,13425,17848,17492,45516,44875,6609,18688,44867,18572,18996,18650,45561,3,44766,16885,45346,45180,39676,32454,18648,18652,44762,17981,44863,44531,17092,5410,8753,19057,44855,18719,17657,18981,18900,44674,44739,44764,44849,18446,6875,24412,17703,44640,19078,45421,44845,17771,17601,17527,34194,44873,45286,44669,44837,44853,5993,13922,13,44685,45515,22509,24438,18430,37267,44767,44775)
Unknown column 'np.person' in 'where clause'