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 (6862,14622,44764,44869,44687,18688,44851,4765,18719,5410,44767,18900,44848,45072,28530,30963,45518,37267,44868,45286,17904,45229,18301,45346,5993,45561,44711,44867,44845,44894,45516,44640,44858,45517,17835,17657,18042,24412,18894,44739,13425,3,17839,43800,45042,37057,9341,18648,44866,31354,18286,17335,10402,17114,18279,44745,18172,44762,17278,34194,17756,44685,18446,30986,18430,24441,6875,44875,17556,5259)
Unknown column 'np.person' in 'where clause'