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 (17904,34194,18894,4765,44768,16935,44878,18427,6782,5259,44873,44863,45229,28313,44640,39676,17657,44855,17237,45518,44687,17335,30135,18301,13922,17278,18794,44858,17492,43800,19057,17756,44674,14402,18996,5993,18688,44867,17601,45072,44865,45180,5388,13425,44689,44875,9341,3,24438,17839,44851,44837,37057,45286,18237,44711,44870,18172,19078,44836,17703,44884,18279,18446,36472,13,32454,17556,45277,18286)
Unknown column 'np.person' in 'where clause'