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 (45286,44836,30963,44762,30986,6782,45177,44674,17601,44894,24411,5259,16935,17278,44768,14622,45180,8753,18042,18353,13425,18900,3883,18301,18652,18427,18430,44861,17492,44711,18794,44671,13922,39676,17335,18688,30135,22509,5993,44865,6609,44878,45042,44845,45518,45051,45346,44775,44764,5388,44765,18572,37267,4686,44873,45043,44858,44848,18279,31354,44685,24412,17703,44745,17556,43800,17009,44640,10402,17755)
Unknown column 'np.person' in 'where clause'