Table is not auto included in fetch and joins for mysql