Using proper SQL query by @CaptainAK
Using proper SQL query by @CaptainAK

Proposed fix did not work, using proper Query now.
Thank @CaptainAK for the fix!

Fixes #492

sasselin/xcoin-mpos,sasselin/xcoin-mpos,UNOMP/chunky-mpos,sixxkilur/php-mpos,mculp/chunky-mpos,xisi/php-mpos,studio666/php-mpos,BlueDragon747/php-mpos,UNOMP/chunky-mpos,xisi/php-mpos,studio666/php-mpos,machinecoin-project/php-mpos,nimblecoin/web,shreeneve/test,BlueDragon747/php-mpos,mculp/chunky-mpos,mmitech/php-mpos,MPOS/php-mpos,bankonme/php-mpos,nimblecoin/web,shreeneve/test,BlueDragon747/php-mpos,CoinHashMe/MPOS-SSO,CoinHashMe/MPOS-SSO,mmitech/php-mpos,CoinHashMe/MPOS-SSO,CoinHashMe/MPOS-SSO,ychaim/php-mpos,MPOS/php-mpos,sasselin/xcoin-mpos,evgenyponomarev/pool,shreeneve/test,CoinHashMe/MPOS-SSO,bankonme/php-mpos,sixxkilur/php-mpos,mculp/chunky-mpos,nimblecoin/web,studio666/php-mpos,UNOMP/chunky-mpos,UNOMP/chunky-mpos,machinecoin-project/php-mpos,ychaim/php-mpos,xisi/php-mpos,evgenyponomarev/pool,evgenyponomarev/pool,mculp/chunky-mpos,machinecoin-project/php-mpos,ychaim/php-mpos,MPOS/php-mpos,sixxkilur/php-mpos,bankonme/php-mpos,mmitech/php-mpos