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 (8753,5993,17981,17556,45421,18996,30963,37057,44674,44687,44870,18427,44669,31354,44766,44768,18650,18430,44531,45517,44865,45177,45516,44873,44764,34194,24412,18185,18353,6609,18301,36472,17756,17657,24411,44845,44878,13425,44837,43800,18572,17601,44863,18719,18446,37267,45346,18981,45518,45229,44762,17351,45561,44685,4765,6875,44767,16935,17904,44853,45277,13988,24438,32454,44851,44861,14402,44849,28313,17009)
Unknown column 'np.person' in 'where clause'