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 (44858,6609,6875,44845,44687,24441,6862,17981,18427,6782,44855,45277,16935,44671,17771,45561,24412,44768,24411,32454,44868,17657,18301,45518,18900,45072,18237,19057,44745,44875,44865,17556,44849,44640,18572,18286,45042,17756,18650,17237,3883,44762,14622,37267,13988,13,44884,5410,44853,43800,18042,18430,18894,17703,44848,44764,18688,44863,18172,18185,30986,44711,44669,44870,45567,18794,18719,17848,24438,17835)
Unknown column 'np.person' in 'where clause'