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 (44671,4765,44853,44669,18430,17527,22509,44640,6782,44845,44674,5388,45561,45346,45277,6862,37267,16885,18301,28530,18794,44878,17981,45515,45180,45072,44685,44765,44855,44866,17835,18237,34194,17771,18900,24438,44775,44854,44762,44875,45421,45262,18719,31354,19078,45286,18648,5410,17601,19057,24441,30963,5259,17839,17657,18572,30986,18688,17492,5993,17755,44848,39676,44764,17756,8753,44835,18279,37057,30135)
Unknown column 'np.person' in 'where clause'