PHP MySql内部连接用户ID错误

PHP MySql内部连接用户ID错误,php,mysql,Php,Mysql,我试图在中获取一条消息,然后在我的通知选项卡下显示它,但它不显示消息我试图从两个表成员表和通知表进行内部联接这就是我的表结构的设置方式 成员表 memberID 用户名 所有者 还有更多 现在在通知表中,这就是我所拥有的 通知 身份证 memberID 信息 地位 这是我的php代码 <li class="dropdown hidden-xs"> <a hre

我试图在中获取一条消息,然后在我的通知选项卡下显示它,但它不显示消息我试图从两个表成员表和通知表进行内部联接这就是我的表结构的设置方式

成员表

memberID

用户名

所有者

还有更多

现在在通知表中,这就是我所拥有的

通知

身份证

memberID

信息

地位

这是我的php代码

                            <li class="dropdown hidden-xs">
                                <a href="#" data-target="#" class="dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="true">
                                    <i class="icon-bell"></i> <span class="badge badge-xs badge-danger">3</span>
                                </a>
                                <ul class="dropdown-menu dropdown-menu-lg">
                                <?php 

                                // Load Notfications
                                $loadNotfications = $db->fetchAll("SELECT * FROM notfications INNER JOIN members.memberID ON notfications.memberID = members.memberID WHERE memberID = '".$memberID."'");

                                if($loadNotfications) {
                                    foreach($loadNotfications as $loadNotfication) {
                                        $id = $loadNotfication['id'];
                                        $memberID = $loadNotfication['memberID'];
                                        $message = $loadNotfication['message'];
                                        $status = $loadNotfication['status'];

                                ?>                                  
                                    <li class="notifi-title"><span class="label label-default pull-right">New 3</span>Notification</li>
                                    <li class="list-group nicescroll notification-list">

                                       <!-- list item-->
                                        <a href="javascript:void(0);" class="list-group-item">
                                            <div class="media">
                                                <div class="pull-left p-r-10">
                                                 <em class="fa fa-cog fa-2x text-custom"></em>
                                                </div>
                                                <div class="media-body">
                                                  <h5 class="media-heading">New settings</h5>
                                                  <p class="m-0">
                                                    <small><?php echo $message; ?></small>
                                                </p>
                                                </div>
                                          </div>
                                       </a>
                                    </li>
                                    <li>
                                        <a href="javascript:void(0);" class="list-group-item text-right">
                                            <small class="font-600">See all notifications</small>
                                        </a>
                                    </li>
                                <?php
                                    }
                                }
                                ?>                                  
                                </ul>
                            </li>