TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,910
  • Total Topics: 21,307
  • Online today: 872
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 365
  • Total: 365

error in your SQL syntax, mem.realName,art.author

Started by sona67, April 01, 2011, 12:06:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sona67

SMF version: SMF ver. 1.1.13
TP version: TP ver. 1.102
Default Forum Language: English UTF8
Theme name and version: SMF default
Browser Name and Version: tried on IE8/Firefox, and Chrome

Error message
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(mem.realName,art.author) as realName FROM smf_tp_articles AS art
LEFT JOIN s' at line 2
File: /host/Sources/TPortal.php
Line: 1770

The error happens when activating a "Articles in a Category" within Front Panel Block. Please see picture attached.

When I search for "mem.realName,art.author", there are actually 5 threads on it - but they are related on upgrades that caused the problem

PS: what I intended to do is to put an article on top of the forum board..

IchBin

Open Soureces/TPortal.php

Code (find) Select
   // any cat listings from blocks?
    if(isset($test_catbox) && $fetchtitles!='')
{
$request =  tp_query("SELECT art.id, art.subject, art.date, art.category, art.authorID, art.shortname


Put a comma right after shortname.
   // any cat listings from blocks?
    if(isset($test_catbox) && $fetchtitles!='')
{
$request =  tp_query("SELECT art.id, art.subject, art.date, art.category, art.authorID, art.shortname,


This website is proudly hosted on Crocweb Cloud Website Hosting.