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 (18719,17904,18894,24412,18446,44865,44766,22509,17114,18286,3,44854,17835,17351,44863,45072,44848,18648,44894,18301,37057,44745,17556,45180,17756,5410,18172,19057,44873,44836,16935,44845,45515,8753,45516,44671,10402,5259,44767,45421,44689,17657,9341,18237,28313,34194,44853,6862,45229,13988,44762,44878,44855,44875,17755,18353,44711,44884,13,18279,17492,44765,30135,18688,44531,44866,14622,30963,39676,45177)
Unknown column 'np.person' in 'where clause'