Ошибка выполнения sql:
SELECT P.ID as PID, P.NAZ, P.IMGB, P.CREATOR, P.RATING, U.ID, U.NAZ as creator_name, R.NAZ as typ, P.SIZE, P.YEAR, A.ID as CUR_ID, A.MP3,A.RATING AS rating_,A.COUNT_RATING FROM PICTURE P, IUSER U, REFBOOK R, ALBUM A, PRANGE PR WHERE P.ID>0 AND P.ENAB=1 AND P.CREATOR=U.ID AND R.ID=P.TIP AND PR.PICTURE=P.ID AND PR.ALBUM=A.ID AND A.ID= ORDER BY PR.PRANGE,P.ID LIMIT 0, 27