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,44762,44768,44687,9341,45517,45177,44531,6862,19057,44845,36472,17839,22509,45421,44766,45516,17771,18688,18446,17278,44674,44868,16885,34194,44867,37267,45515,44765,17092,17492,17981,6875,17657,45346,28313,44851,19078,13922,43800,44869,18042,44854,44671,32454,6782,6609,44861,44884,24412,18279,44858,13425,17527,44848,44689,17556,45286,24411,18301,5993,44870,17755,45518,18894,18172,45072,18237,44878,18794)
Unknown column 'np.person' in 'where clause'