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 (44835,44849,44765,34194,44685,18185,18688,44687,18996,6862,4765,30963,18042,44853,44858,44767,24438,18172,44848,5388,45072,13,44766,17278,37057,31354,17527,18648,17755,17114,24411,44851,44868,45561,18301,45177,6609,44873,44768,13425,45051,16885,17492,45518,18237,6875,44837,45180,18719,43800,44674,17703,3,13988,3883,44856,16935,14402,18650,44762,8753,36472,44867,45515,44870,44640,22509,44865,44894,17904)
Unknown column 'np.person' in 'where clause'