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 (45346,44762,18900,44855,24411,37267,45262,44531,43800,18996,44640,18279,30963,24441,3883,45051,17703,6875,18981,45421,8753,45177,44768,13,44765,24412,17657,44766,6609,4765,34194,44687,18446,16885,5993,44858,44848,32454,45277,45516,17237,17839,17755,45567,36472,19078,18688,44669,18042,44865,17556,45515,14402,17601,13922,10402,45561,16935,18794,17492,45180,44861,18652,31354,30135,18650,4686,44836,44767,6862)
Unknown column 'np.person' in 'where clause'