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 (44848,44845,6609,18719,43800,22509,6875,24438,44685,24441,39676,3883,17981,44837,45180,44739,18172,44867,17657,44869,18894,16935,9341,45518,17009,30986,6782,18301,18688,44878,44768,44894,37057,44767,44861,44766,18900,24412,44764,45043,45421,45515,44875,18353,17556,30963,44873,45042,36472,44669,45229,34194,44674,18648,18446,13,17756,44687,44765,44865,14622,44856,3,14402,44849,17601,17771,44858,45277,44851)
Unknown column 'np.person' in 'where clause'