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 (32454,44768,13,45042,17703,44531,44873,13425,17492,5388,18301,17835,44745,44669,44854,44711,18446,14622,44640,17601,45516,44766,44849,17009,18894,13988,44858,17114,19078,17771,18794,44836,24411,6609,45517,45051,44870,6862,44894,45346,18650,17657,45262,44762,9341,16935,18427,34194,8753,4686,44765,45229,45421,17848,18688,39676,44863,45567,17527,45561,17756,44671,44861,44884,44855,37267,18279,18430,4765,24441)
Unknown column 'np.person' in 'where clause'